String Changes, Don't register tons of defaults

This commit is contained in:
Daniel Odendahl Jr
2017-04-05 17:27:31 +00:00
parent f380a3ecbd
commit 332016ca5d
75 changed files with 225 additions and 265 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
const commando = require('discord.js-commando');
const Jimp = require("jimp");
const Jimp = require('jimp');
module.exports = class YearsCommand extends commando.Command {
constructor(Client) {
@@ -10,7 +10,7 @@ module.exports = class YearsCommand extends commando.Command {
],
group: 'avataredit',
memberName: '3000years',
description: "It's been 3000 years... (;3000years @User)",
description: 'It\'s been 3000 years... (;3000years @User)',
examples: [';3000years @user'],
args: [{
key: 'user',
@@ -27,11 +27,11 @@ module.exports = class YearsCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const user = args.user;
let userAvatar = user.displayAvatarURL;
userAvatar = userAvatar.replace(".jpg", ".png");
userAvatar = userAvatar.replace(".gif", ".png");
userAvatar = userAvatar.replace('.jpg', '.png');
userAvatar = userAvatar.replace('.gif', '.png');
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read("./images/3000years.png"));
images.push(Jimp.read('./images/3000years.png'));
const [avatar, years] = await Promise.all(images);
avatar.resize(200, 200);
years.blit(avatar, 461, 127);
+4 -4
View File
@@ -1,5 +1,5 @@
const commando = require('discord.js-commando');
const Jimp = require("jimp");
const Jimp = require('jimp');
module.exports = class BeautifulCommand extends commando.Command {
constructor(Client) {
@@ -27,11 +27,11 @@ module.exports = class BeautifulCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const user = args.user;
let userAvatar = user.displayAvatarURL;
userAvatar = userAvatar.replace(".jpg", ".png");
userAvatar = userAvatar.replace(".gif", ".png");
userAvatar = userAvatar.replace('.jpg', '.png');
userAvatar = userAvatar.replace('.gif', '.png');
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read("./images/beautiful.jpg"));
images.push(Jimp.read('./images/beautiful.jpg'));
const [avatar, beautiful] = await Promise.all(images);
avatar.resize(200, 200);
beautiful.blit(avatar, 432, 42);
+6 -6
View File
@@ -1,5 +1,5 @@
const commando = require('discord.js-commando');
const Jimp = require("jimp");
const Jimp = require('jimp');
module.exports = class BobRossCommand extends commando.Command {
constructor(Client) {
@@ -11,7 +11,7 @@ module.exports = class BobRossCommand extends commando.Command {
],
group: 'avataredit',
memberName: 'bobross',
description: "Make Bob Ross draw your avatar. (;bobross @User)",
description: 'Make Bob Ross draw your avatar. (;bobross @User)',
examples: [';bobross @User'],
args: [{
key: 'user',
@@ -28,12 +28,12 @@ module.exports = class BobRossCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const user = args.user;
let userAvatar = user.displayAvatarURL;
userAvatar = userAvatar.replace(".jpg", ".png");
userAvatar = userAvatar.replace(".gif", ".png");
userAvatar = userAvatar.replace('.jpg', '.png');
userAvatar = userAvatar.replace('.gif', '.png');
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read("./images/BobRoss.png"));
images.push(Jimp.read("./images/BlankWhite.png"));
images.push(Jimp.read('./images/BobRoss.png'));
images.push(Jimp.read('./images/BlankWhite.png'));
const [avatar, bob, nothing] = await Promise.all(images);
avatar.rotate(2);
avatar.resize(300, 300);
+4 -4
View File
@@ -1,5 +1,5 @@
const commando = require('discord.js-commando');
const Jimp = require("jimp");
const Jimp = require('jimp');
module.exports = class RIPCommand extends commando.Command {
constructor(Client) {
@@ -28,11 +28,11 @@ module.exports = class RIPCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const user = args.user;
let userAvatar = user.displayAvatarURL;
userAvatar = userAvatar.replace(".jpg", ".png");
userAvatar = userAvatar.replace(".gif", ".png");
userAvatar = userAvatar.replace('.jpg', '.png');
userAvatar = userAvatar.replace('.gif', '.png');
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read("./images/gravestone.jpg"));
images.push(Jimp.read('./images/gravestone.jpg'));
const [avatar, gravestone] = await Promise.all(images);
avatar.resize(200, 200);
gravestone.blit(avatar, 60, 65);
+6 -6
View File
@@ -1,5 +1,5 @@
const commando = require('discord.js-commando');
const Jimp = require("jimp");
const Jimp = require('jimp');
module.exports = class SteamCardCommand extends commando.Command {
constructor(Client) {
@@ -10,7 +10,7 @@ module.exports = class SteamCardCommand extends commando.Command {
],
group: 'avataredit',
memberName: 'steamcard',
description: "Put an avatar on a Steam Card. (;steamcard @User)",
description: 'Put an avatar on a Steam Card. (;steamcard @User)',
examples: [';steamcard @user'],
guildOnly: true,
args: [{
@@ -29,12 +29,12 @@ module.exports = class SteamCardCommand extends commando.Command {
const user = args.user;
const userDisplayName = message.guild.member(args.user).displayName;
let userAvatar = user.displayAvatarURL;
userAvatar = userAvatar.replace(".jpg", ".png");
userAvatar = userAvatar.replace(".gif", ".png");
userAvatar = userAvatar.replace('.jpg', '.png');
userAvatar = userAvatar.replace('.gif', '.png');
let images = [];
images.push(Jimp.read(userAvatar));
images.push(Jimp.read("./images/SteamCard.png"));
images.push(Jimp.read("./images/SteamCardBlank.png"));
images.push(Jimp.read('./images/SteamCard.png'));
images.push(Jimp.read('./images/SteamCardBlank.png'));
const [avatar, steamcard, nothing] = await Promise.all(images);
const font = await Jimp.loadFont(Jimp.FONT_SANS_32_WHITE);
avatar.resize(450, 450);
+10 -10
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
const Discord = require('discord.js');
const config = require("../../config.json");
const config = require('../../config.json');
const moment = require('moment');
require('moment-duration-format');
@@ -35,7 +35,7 @@ module.exports = class InfoCommand extends commando.Command {
.setThumbnail(this.client.user.avatarURL)
.setURL('http://dragonfire535.weebly.com/xiaobot.html')
.addField('Commands',
"There are a variety of commands XiaoBot can use! Use ';help' to view a list of all commands!")
'There are a variety of commands XiaoBot can use! Use `;help` to view a list of all commands!')
.addField('Servers',
`${this.client.guilds.size} / ${guilds.reduce((prev, val) => prev + val, 0)}`, true)
.addField('Shards',
@@ -43,9 +43,9 @@ module.exports = class InfoCommand extends commando.Command {
.addField('Commands',
config.commandCount, true)
.addField('Owner',
"dragonfire535#8081", true)
'dragonfire535#8081', true)
.addField('Source Code',
"[View Here](https://github.com/dragonfire535/xiaobot)", true)
'[View Here](https://github.com/dragonfire535/xiaobot)', true)
.addField('Memory Usage',
`${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)}MB`, true)
.addField('Uptime',
@@ -55,17 +55,17 @@ module.exports = class InfoCommand extends commando.Command {
.addField('Voice Connections',
`${this.client.voiceConnections.size} / ${vCConnections.reduce((prev, val) => prev + val, 0)}`, true)
.addField('Library',
"[discord.js](https://discord.js.org/#/) / [commando](https://github.com/Gawdl3y/discord.js-commando)", true)
'[discord.js](https://discord.js.org/#/) / [commando](https://github.com/Gawdl3y/discord.js-commando)', true)
.addField('Modules',
"[pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse), [superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/), [sherlockjs](https://github.com/maytis/sherlockjs)")
'[pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse), [superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/), [sherlockjs](https://github.com/maytis/sherlockjs)')
.addField('APIs',
"[Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/#api), [jService API](http://jservice.io/), [Strawpoll API](https://github.com/strawpoll/strawpoll/wiki/API), [Urban Dictionary API](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB API](http://www.omdbapi.com/), [Yahoo Weather API](https://developer.yahoo.com/weather/), [iTunes Store Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/)")
'[Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/#api), [jService API](http://jservice.io/), [Strawpoll API](https://github.com/strawpoll/strawpoll/wiki/API), [Urban Dictionary API](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB API](http://www.omdbapi.com/), [Yahoo Weather API](https://developer.yahoo.com/weather/), [iTunes Store Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/)')
.addField('Other Credit',
"[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)")
'[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)')
.addField('My Server',
"[Click Here to Join!](https://discord.gg/fqQF8mc)")
'[Click Here to Join!](https://discord.gg/fqQF8mc)')
.addField('Invite Link:',
"[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343)");
'[Click Here to Add Me to Your Server!](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343)');
return message.embed(embed);
}
};
+1 -1
View File
@@ -16,6 +16,6 @@ module.exports = class InviteCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
return message.say("Add me to your server with this link:\nhttps://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343\nOr, come to my server with this link:\nhttps://discord.gg/fqQF8mc");
return message.say('Add me to your server with this link:\nhttps://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=1345846343\nOr, come to my server with this link:\nhttps://discord.gg/fqQF8mc');
}
};
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = class LotteryCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const lotteryNumber = ['Winner'][Math.floor(Math.random() * 100)];
if (lotteryNumber !== "Winner") return message.say(`Nope, sorry ${message.author.username}, you lost.`);
if (lotteryNumber !== 'Winner') return message.say(`Nope, sorry ${message.author.username}, you lost.`);
return message.say(`Wow ${message.author.username}! You actually won! Great job!`);
}
};
+4 -4
View File
@@ -34,16 +34,16 @@ module.exports = class MathGameCommand extends commando.Command {
randomType = randomType[Math.floor(Math.random() * randomType.length)];
let randomValue;
switch (level) {
case "easy":
case 'easy':
randomValue = 10;
break;
case "medium":
case 'medium':
randomValue = 50;
break;
case "hard":
case 'hard':
randomValue = 100;
break;
case "extreme":
case 'extreme':
randomValue = 1000;
break;
}
+3 -3
View File
@@ -20,7 +20,7 @@ module.exports = class QuizCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log("[Command] " + message.content);
console.log('[Command] ' + message.content);
try {
const response = await request
.get('http://jservice.io/api/random')
@@ -28,7 +28,7 @@ module.exports = class QuizCommand extends commando.Command {
count: 1
});
const data = response.body[0];
const answer = data.answer.toLowerCase().split("<i>").join("").split("</i>").join("");
const answer = data.answer.toLowerCase().split('<i>').join('').split('</i>').join('');
const embed = new Discord.RichEmbed()
.setTitle('You have **fifteen** seconds to answer this question:')
.setDescription(`**Category: ${data.category.title}**\n${data.question}`);
@@ -52,7 +52,7 @@ module.exports = class QuizCommand extends commando.Command {
}
}
catch (err) {
return message.say(":x: Error! Something went wrong!");
return message.say(':x: Error! Something went wrong!');
}
}
};
+22 -22
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RockPaperScissors extends commando.Command {
module.exports = class RockPaperScissorsCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'rps',
@@ -33,37 +33,37 @@ module.exports = class RockPaperScissors extends commando.Command {
const rps = args.choice.toLowerCase();
let response = ['Paper', 'Rock', 'Scissors'];
response = response[Math.floor(Math.random() * response.length)];
if (rps === "rock") {
if (response === "Rock") {
return message.say("Rock! Aw, it's a tie!");
if (rps === 'rock') {
if (response === 'Rock') {
return message.say('Rock! Aw, it\'s a tie!');
}
if (response === "Paper") {
return message.say("Paper! Yes! I win!");
if (response === 'Paper') {
return message.say('Paper! Yes! I win!');
}
if (response === "Scissors") {
return message.say("Scissors! Aw... I lose...");
if (response === 'Scissors') {
return message.say('Scissors! Aw... I lose...');
}
}
else if (rps === "paper") {
if (response === "Rock") {
return message.say("Rock! Aw... I lose...");
else if (rps === 'paper') {
if (response === 'Rock') {
return message.say('Rock! Aw... I lose...');
}
if (response === "Paper") {
return message.say("Paper! Aw, it's a tie!");
if (response === 'Paper') {
return message.say('Paper! Aw, it\'s a tie!');
}
if (response === "Scissors") {
return message.say("Scissors! Yes! I win!");
if (response === 'Scissors') {
return message.say('Scissors! Yes! I win!');
}
}
else if (rps === "scissors") {
if (response === "Rock") {
return message.say("Rock! Yes! I win!");
else if (rps === 'scissors') {
if (response === 'Rock') {
return message.say('Rock! Yes! I win!');
}
if (response === "Paper") {
return message.say("Paper! Aw... I lose...");
if (response === 'Paper') {
return message.say('Paper! Aw... I lose...');
}
if (response === "Scissors") {
return message.say("Scissors! Aw, it's a tie!");
if (response === 'Scissors') {
return message.say('Scissors! Aw, it\'s a tie!');
}
}
}
+8 -8
View File
@@ -34,21 +34,21 @@ module.exports = class TypingGameCommand extends commando.Command {
let time;
let levelWord;
switch (level) {
case "easy":
case 'easy':
time = 25000;
levelWord = "twenty-five";
levelWord = 'twenty-five';
break;
case "medium":
case 'medium':
time = 20000;
levelWord = "twenty";
levelWord = 'twenty';
break;
case "hard":
case 'hard':
time = 15000;
levelWord = "fifteen";
levelWord = 'fifteen';
break;
case "extreme":
case 'extreme':
time = 10000;
levelWord = "ten";
levelWord = 'ten';
break;
}
const embed = new Discord.RichEmbed()
+2 -2
View File
@@ -11,7 +11,7 @@ module.exports = class EmojiCommand extends commando.Command {
],
group: 'guildinfo',
memberName: 'emoji',
description: "Gives a list of the current server's emoji. (;emoji)",
description: 'Gives a list of the current server\'s emoji. (;emoji)',
examples: [';emoji'],
guildOnly: true
});
@@ -22,6 +22,6 @@ module.exports = class EmojiCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
return message.say(message.guild.emojis.map(e => e).join(" "));
return message.say(message.guild.emojis.map(e => e).join(' '));
}
};
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = class GuildInfoCommand extends commando.Command {
message.guild.region, true)
.addField('**Owner:**',
`${message.guild.owner.user.username}#${message.guild.owner.user.discriminator}`, true)
.addField("**Users:**",
.addField('**Users:**',
message.guild.memberCount, true);
return message.embed(embed);
}
+10 -10
View File
@@ -10,9 +10,9 @@ module.exports = class MemeCommand extends commando.Command {
],
group: 'imageedit',
memberName: 'meme',
description: "Sends a Meme with text of your choice, and a background of your choice. Split first and second lines with a | (;meme facepalm I can't even | comprehend this)",
details: "**Codes:** tenguy, afraid, older, aag, tried, biw, blb, kermit, bd, ch, cbg, wonka, cb, keanu, dsm, live, ants, doge, alwaysonbeat, ermg, facepalm, fwp, fa, fbf, fry, hipster, icanhas, crazypills, mw, noidea, regret, boat, hagrid, sohappy, captain, inigo, iw, ackbar, happening, joker, ive, ll, morpheus, mb, badchoice, mmm, jetpack, red, mordor, oprah, oag, remembers, philosoraptor, jw, patrick, rollsafe, sad-obama, sad-clinton, sadfrog, sad-bush, sad-biden, sad-boehner, saltbae, sarcasticbear, dwight, sb, ss, sf, dodgson, money, sohot, nice, awesome-awkward, awesome, awkward-awesome, awkward, fetch, success, scc, ski, officespace, interesting, toohigh, bs, center, both, winter, xy, buzz, yodawg, uno, yallgot, bad, elf, chosen",
examples: [";meme facepalm I can't even | comprehend this"],
description: 'Sends a Meme with text of your choice, and a background of your choice. Split first and second lines with a | (;meme facepalm I can\'t even | comprehend this)',
details: '**Codes:** tenguy, afraid, older, aag, tried, biw, blb, kermit, bd, ch, cbg, wonka, cb, keanu, dsm, live, ants, doge, alwaysonbeat, ermg, facepalm, fwp, fa, fbf, fry, hipster, icanhas, crazypills, mw, noidea, regret, boat, hagrid, sohappy, captain, inigo, iw, ackbar, happening, joker, ive, ll, morpheus, mb, badchoice, mmm, jetpack, red, mordor, oprah, oag, remembers, philosoraptor, jw, patrick, rollsafe, sad-obama, sad-clinton, sadfrog, sad-bush, sad-biden, sad-boehner, saltbae, sarcasticbear, dwight, sb, ss, sf, dodgson, money, sohot, nice, awesome-awkward, awesome, awkward-awesome, awkward, fetch, success, scc, ski, officespace, interesting, toohigh, bs, center, both, winter, xy, buzz, yodawg, uno, yallgot, bad, elf, chosen',
examples: [';meme facepalm I can\'t even | comprehend this'],
args: [{
key: 'type',
prompt: 'What meme type do you want to use?',
@@ -25,13 +25,13 @@ module.exports = class MemeCommand extends commando.Command {
}
}, {
key: 'content',
prompt: 'What should the meme content be? Split the bottom and top text of the meme with " | ".',
prompt: 'What should the meme content be? Split the bottom and top text of the meme with ' | '.',
type: 'string',
validate: content => {
if (content.includes(' | ') && content.match(/^[a-zA-Z0-9|.,!?'-\s]+$/)) {
return true;
}
return 'Please split your choices with " | " and do not use special characters.';
return 'Please split your choices with ' | ' and do not use special characters.';
}
}]
});
@@ -44,12 +44,12 @@ module.exports = class MemeCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const type = args.type.toLowerCase();
const content = args.content;
const memeQuery = content.split(" ").join("-").split("-|-");
const toprow = memeQuery[0].split("?").join("~q");
const bottomrow = memeQuery[1].split("?").join("~q");
const memeQuery = content.split(' ').join('-').split('-|-');
const toprow = memeQuery[0].split('?').join('~q');
const bottomrow = memeQuery[1].split('?').join('~q');
const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`;
if (bottomrow.length > 100) return message.say(":x: Error! Bottom text is over 100 characters!");
if (toprow.length > 100) return message.say(":x: Error! Top text is over 100 characters!");
if (bottomrow.length > 100) return message.say(':x: Error! Bottom text is over 100 characters!');
if (toprow.length > 100) return message.say(':x: Error! Top text is over 100 characters!');
return message.channel.sendFile(link).catch(err => message.say(':x: Error! Something went wrong!'));
}
};
+5 -5
View File
@@ -11,7 +11,7 @@ module.exports = class BanCommand extends commando.Command {
group: 'moderation',
memberName: 'ban',
description: 'Bans a user. (;ban @User being a jerk.)',
examples: [";ban @User being a jerk."],
examples: [';ban @User being a jerk.'],
guildOnly: true,
args: [{
key: 'member',
@@ -25,7 +25,7 @@ module.exports = class BanCommand extends commando.Command {
if (reason.length < 141) {
return true;
}
return "Please keep your reason under 140 characters.";
return 'Please keep your reason under 140 characters.';
}
}]
});
@@ -39,13 +39,13 @@ module.exports = class BanCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'BAN_MEMBERS'])) return;
}
console.log(`[Command] ${message.content}`);
if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!");
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
const member = args.member;
const reason = args.reason;
if (!message.guild.member(member).bannable) return message.say(":x: Error! This member cannot be banned! Perhaps they have a higher role than me?");
if (!message.guild.member(member).bannable) return message.say(':x: Error! This member cannot be banned! Perhaps they have a higher role than me?');
try {
const banUser = await message.guild.member(member).ban();
const okHandMsg = await message.say(":ok_hand:");
const okHandMsg = await message.say(':ok_hand:');
const embed = new Discord.RichEmbed()
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0xFF0000)
+5 -5
View File
@@ -8,7 +8,7 @@ module.exports = class KickCommand extends commando.Command {
group: 'moderation',
memberName: 'kick',
description: 'Kicks a user. (;kick @User being a jerk.)',
examples: [";kick @User being a jerk."],
examples: [';kick @User being a jerk.'],
guildOnly: true,
args: [{
key: 'member',
@@ -22,7 +22,7 @@ module.exports = class KickCommand extends commando.Command {
if (reason.length < 141) {
return true;
}
return "Please keep your reason under 140 characters.";
return 'Please keep your reason under 140 characters.';
}
}]
});
@@ -36,13 +36,13 @@ module.exports = class KickCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'KICK_MEMBERS'])) return;
}
console.log(`[Command] ${message.content}`);
if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!");
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
const member = args.member;
const reason = args.reason;
if (!message.guild.member(member).bannable) return message.say(":x: Error! This member cannot be kicked! Perhaps they have a higher role than me?");
if (!message.guild.member(member).bannable) return message.say(':x: Error! This member cannot be kicked! Perhaps they have a higher role than me?');
try {
const kickUser = await message.guild.member(member).kick();
const okHandMsg = await message.say(":ok_hand:");
const okHandMsg = await message.say(':ok_hand:');
const embed = new Discord.RichEmbed()
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0xFFA500)
+3 -3
View File
@@ -7,7 +7,7 @@ module.exports = class LockdownCommand extends commando.Command {
group: 'moderation',
memberName: 'lockdown',
description: 'Locks down the current server or removes a lockdown, which prevents non-roled members from speaking. (;lockdown start)',
examples: [";lockdown start", ";lockdown stop"],
examples: [';lockdown start', ';lockdown stop'],
guildOnly: true,
args: [{
key: 'type',
@@ -17,7 +17,7 @@ module.exports = class LockdownCommand extends commando.Command {
if (type.toLowerCase() === 'start' || type.toLowerCase() === 'stop') {
return true;
}
return "Please enter either start or stop.";
return 'Please enter either start or stop.';
}
}]
});
@@ -29,7 +29,7 @@ module.exports = class LockdownCommand extends commando.Command {
async run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'SEND_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR')) return message.say(":x: Error! I don't have the Administrator permission! This is not given by default, as that's quite bad practice. Please give it to me to use the lockdown command!");
if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR')) return message.say(':x: Error! I don\'t have the Administrator permission! This is not given by default, as that\'s quite bad practice. Please give it to me to use the lockdown command!');
}
console.log(`[Command] ${message.content}`);
const type = args.type;
+3 -3
View File
@@ -15,7 +15,7 @@ module.exports = class PruneCommand extends commando.Command {
group: 'moderation',
memberName: 'prune',
description: 'Deletes a defined number of messages from the current channel, up to 99. (;prune 45)',
examples: [";prune 45"],
examples: [';prune 45'],
guildOnly: true,
throttling: {
usages: 1,
@@ -29,7 +29,7 @@ module.exports = class PruneCommand extends commando.Command {
if (count < 100 && count > 0) {
return true;
}
return "Too many or two few messages to delete. Limit 1-99.";
return 'Too many or two few messages to delete. Limit 1-99.';
}
}]
});
@@ -40,7 +40,7 @@ module.exports = class PruneCommand extends commando.Command {
async run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'MANAGE_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'MANAGE_MESSAGES', 'READ_MESSAGE_HISTORY'])) return;
}
console.log(`[Command] ${message.content}`);
const count = args.count + 1;
+5 -5
View File
@@ -11,7 +11,7 @@ module.exports = class UnbanCommand extends commando.Command {
group: 'moderation',
memberName: 'unban',
description: 'Unbans a user. (;unban USERID not being a jerk.)',
examples: [";unban USERID not being a jerk."],
examples: [';unban USERID not being a jerk.'],
guildOnly: true,
args: [{
key: 'memberID',
@@ -21,7 +21,7 @@ module.exports = class UnbanCommand extends commando.Command {
if (userID.length === 18) {
return true;
}
return "Invalid ID. Please enter the user you wish to unban's ID.";
return 'Invalid ID. Please enter the user you wish to unban\'s ID.';
}
}, {
key: 'reason',
@@ -31,7 +31,7 @@ module.exports = class UnbanCommand extends commando.Command {
if (reason.length < 141) {
return true;
}
return "Please keep your reason under 140 characters.";
return 'Please keep your reason under 140 characters.';
}
}]
});
@@ -45,7 +45,7 @@ module.exports = class UnbanCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS', 'BAN_MEMBERS'])) return;
}
console.log(`[Command] ${message.content}`);
if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!");
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
const memberID = args.memberID;
const reason = args.reason;
const bans = await message.guild.fetchBans();
@@ -53,7 +53,7 @@ module.exports = class UnbanCommand extends commando.Command {
const unbanUserObj = await bans.get(memberID);
try {
const unbanUser = await message.guild.unban(unbanUserObj);
const okHandMsg = await message.say(":ok_hand:");
const okHandMsg = await message.say(':ok_hand:');
const embed = new Discord.RichEmbed()
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0x00AE86)
+4 -4
View File
@@ -8,7 +8,7 @@ module.exports = class WarnCommand extends commando.Command {
group: 'moderation',
memberName: 'warn',
description: 'Warns a user. (;warn @User being a jerk)',
examples: [";warn @User being a jerk."],
examples: [';warn @User being a jerk.'],
guildOnly: true,
args: [{
key: 'member',
@@ -22,7 +22,7 @@ module.exports = class WarnCommand extends commando.Command {
if (reason.length < 141) {
return true;
}
return "Please keep your reason under 140 characters.";
return 'Please keep your reason under 140 characters.';
}
}]
});
@@ -38,9 +38,9 @@ module.exports = class WarnCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const userToWarn = args.member;
const reason = args.reason;
if (!message.guild.channels.exists("name", "mod_logs")) return message.say(":x: Error! Could not find the mod_logs channel! Please create it!");
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
try {
const okHandMsg = await message.say(":ok_hand:");
const okHandMsg = await message.say(':ok_hand:');
const embed = new Discord.RichEmbed()
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
.setColor(0xFFFF00)
+2 -2
View File
@@ -31,10 +31,10 @@ module.exports = class MathCommand extends commando.Command {
const expression = args.expression;
try {
const solved = math.eval(expression);
return message.say(solved).catch(err => message.say(":x: Error! Invalid statement!"));
return message.say(solved).catch(err => message.say(':x: Error! Invalid statement!'));
}
catch (err) {
return message.say(":x: Error! Invalid statement!");
return message.say(':x: Error! Invalid statement!');
}
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class CanYouNot extends commando.Command {
module.exports = class CanYouNotCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'canyounot',
+4 -4
View File
@@ -18,11 +18,11 @@ module.exports = class NitroCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const embed = new Discord.RichEmbed()
.setAuthor("Discord Nitro")
.setThumbnail("https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg")
.setAuthor('Discord Nitro')
.setThumbnail('https://pbs.twimg.com/profile_images/814184180649197568/y2eZcVMq.jpg')
.setColor(0x748BD9)
.setURL("https://discordapp.com/nitro")
.setDescription("This Message can only be viewed by members with Discord Nitro.\n\n\n[More Information](https://discordapp.com/nitro)");
.setURL('https://discordapp.com/nitro')
.setDescription('This Message can only be viewed by members with Discord Nitro.\n\n[More Information](https://discordapp.com/nitro)');
return message.embed(embed);
}
};
-43
View File
@@ -1,43 +0,0 @@
const commando = require('discord.js-commando');
const moment = require('moment');
const sherlock = require('Sherlock');
module.exports = class RemindCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'remind',
aliases: [
'remindme'
],
group: 'random',
memberName: 'remind',
description: 'Reminds you of something at a certain time. (;remind Eat Food tomorrow)',
examples: [';remind Eat Food tomorrow'],
args: [{
key: 'remind',
prompt: 'What should I remind you of?',
type: 'string'
}]
});
}
async run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
const remindMe = args.remind;
try {
const remindTime = sherlock.parse(remindMe);
const time = remindTime.startDate.getTime() - Date.now();
const preRemind = await message.say(`I will remind you '${remindTime.eventTitle}' ${moment().add(time, 'ms').fromNow()}.`);
const remindMessage = await new Promise(resolve => {
setTimeout(() => resolve(message.say(`${message.author} you wanted me to remind you of: '${remindTime.eventTitle}'`)), time);
});
return [preRemind, remindMessage];
}
catch (err) {
return message.say(":x: Error! Something went wrong! Perhaps you didn't enter a valid time with your data?");
}
}
};
+2 -2
View File
@@ -1,5 +1,5 @@
const commando = require('discord.js-commando');
const sounds = ['cat', 'pikachu', 'vader', 'doh', "it's a trap", 'mario death', 'pokemon center', 'dun dun dun', 'spongebob', 'ugly barnacle', 'woo hoo', 'space', 'glados bird', 'airhorn', 'zelda chest', 'eat my shorts', 'no this is patrick', 'wumbo'];
const sounds = ['cat', 'pikachu', 'vader', 'doh', 'it\'s a trap', 'mario death', 'pokemon center', 'dun dun dun', 'spongebob', 'ugly barnacle', 'woo hoo', 'space', 'glados bird', 'airhorn', 'zelda chest', 'eat my shorts', 'no this is patrick', 'wumbo'];
const paths = {
"cat": "./sounds/cat.mp3",
"pikachu": "./sounds/pikachu.mp3",
@@ -32,7 +32,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
group: 'random',
memberName: 'soundboard',
description: 'Plays a sound in your voice channel. (;soundboard cat)',
details: "**Sounds:** Cat, Pikachu, Vader, Doh, It's a Trap, Mario Death, Pokemon Center, Dun Dun Dun, Spongebob, Ugly Barnacle, Woo Hoo, Space, GLaDOS Bird, Airhorn, Zelda Chest, Eat my Shorts, No This is Patrick, Wumbo",
details: '**Sounds:** Cat, Pikachu, Vader, Doh, It\'s a Trap, Mario Death, Pokemon Center, Dun Dun Dun, Spongebob, Ugly Barnacle, Woo Hoo, Space, GLaDOS Bird, Airhorn, Zelda Chest, Eat my Shorts, No This is Patrick, Wumbo',
examples: [';soundboard cat'],
guildOnly: true,
args: [{
+1 -1
View File
@@ -16,6 +16,6 @@ module.exports = class SpamCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}
console.log(`[Command] ${message.content}`);
return message.channel.sendFile("./images/Spam.jpg");
return message.channel.sendFile('./images/Spam.jpg');
}
};
+5 -5
View File
@@ -12,7 +12,7 @@ module.exports = class StrawpollCommand extends commando.Command {
group: 'random',
memberName: 'strawpoll',
description: 'Creates a Strawpoll with your options. (;strawpoll "Who likes chips?" Me | Not Me)',
examples: [';;strawpoll "Who likes chips?" Me | Not Me'],
examples: [';strawpoll "Who likes chips?" Me | Not Me'],
args: [{
key: 'title',
prompt: 'What would you like the title of the Strawpoll to be? Surround in "" for multiple words.',
@@ -25,7 +25,7 @@ module.exports = class StrawpollCommand extends commando.Command {
}
}, {
key: 'choices',
prompt: 'What choices do you want me pick from? Split them with " | "!',
prompt: 'What choices do you want me pick from? Split them with " | ".',
type: 'string',
validate: content => {
if (content.includes(' | ')) {
@@ -34,7 +34,7 @@ module.exports = class StrawpollCommand extends commando.Command {
if (content.length > 160) {
return 'Please limit your options to 160 characters.';
}
return 'Please split your choices with " | ".';
return 'Please split your choices with ' | '.';
}
}]
});
@@ -46,7 +46,7 @@ module.exports = class StrawpollCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const title = args.title;
const choices = args.choices.split(" | ");
const choices = args.choices.split(' | ');
if (choices.length < 2) return message.say(':x: Error! You provided less than two choices!');
if (choices.length > 31) return message.say(':x: Error! You provided more than thirty choices!');
try {
@@ -60,7 +60,7 @@ module.exports = class StrawpollCommand extends commando.Command {
return message.say(`${data.title}\nhttp://strawpoll.me/${data.id}`);
}
catch (err) {
return message.say(":x: Error! Something went wrong!");
return message.say(':x: Error! Something went wrong!');
}
}
};
+2 -2
View File
@@ -20,7 +20,7 @@ module.exports = class TodayCommand extends commando.Command {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log("[Command] " + message.content);
console.log('[Command] ' + message.content);
try {
const response = await request
.get('http://history.muffinlabs.com/date')
@@ -40,7 +40,7 @@ module.exports = class TodayCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Something went wrong!");
return message.say(':x: Error! Something went wrong!');
}
}
};
+3 -3
View File
@@ -1,13 +1,13 @@
const commando = require('discord.js-commando');
module.exports = class MagicBall extends commando.Command {
module.exports = class MagicBallCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: '8ball',
group: 'response',
memberName: '8ball',
description: 'Predicts your future. (;8ball Am I stupid?)',
examples: [';8ball <INSERT QUESTION HERE>'],
examples: [';8ball Am I stupid?'],
args: [{
key: 'question',
prompt: 'What do you want to ask the 8 ball?',
@@ -22,7 +22,7 @@ module.exports = class MagicBall extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const question = args.question;
let answers = ['It seems the answer is yes, yes?', 'It seems the answer is no.', 'It is a little doubtful, yes?', 'It seems it is very likely to be true.'];
let answers = ['It is certain', 'It is decidedly so', 'Without a doubt', 'Yes definitely', 'You may rely on it', 'As I see it, yes', 'Most likely', 'Outlook good', 'Yes', 'Signs point to yes', 'Reply hazy try again', 'Ask again later', 'Better not tell you now', 'Cannot predict now', 'Concentrate and ask again', 'Don\'t count on it', 'My reply is no', 'My sources say no', 'Outlook not so good', 'Very doubtful'];
answers = answers[Math.floor(Math.random() * answers.length)];
return message.say(`Question: ${question}\n:8ball: ${answers} :8ball:`);
}
+2 -2
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RandomCat extends commando.Command {
module.exports = class CatCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'cat',
@@ -16,7 +16,7 @@ module.exports = class RandomCat extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}
console.log(`[Command] ${message.content}`);
let cat = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg", "10.jpg", "11.jpeg", "12.jpg", "13.jpeg", "14.png", "15.jpg", "16.jpg", "17.jpg", "18.jpg", "19.jpg", "20.jpg"];
let cat = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.jpg', '9.jpg', '10.jpg', '11.jpeg', '12.jpg', '13.jpeg', '14.png', '15.jpg', '16.jpg', '17.jpg', '18.jpg', '19.jpg', '20.jpg'];
cat = cat[Math.floor(Math.random() * cat.length)];
return message.channel.sendFile(`./images/Cat${cat}`);
}
+3 -3
View File
@@ -13,13 +13,13 @@ module.exports = class ChooseCommand extends commando.Command {
examples: [';choose Cow | Sheep', ';choose Bark | Woof | Meow | Moo'],
args: [{
key: 'choices',
prompt: 'What choices do you want me pick from? Split them with " | "!',
prompt: 'What choices do you want me pick from? Split them with ' | '!',
type: 'string',
validate: content => {
if (content.includes(' | ')) {
return true;
}
return 'Please split your choices with " | ".';
return 'Please split your choices with ' | '.';
}
}]
});
@@ -31,7 +31,7 @@ module.exports = class ChooseCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
let choices = args.choices;
choices = choices.split(" | ");
choices = choices.split(' | ');
choices = choices[Math.floor(Math.random() * choices.length)];
return message.say(`I choose ${choices}!`);
}
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class ComplimentCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const thingToCompliment = args.thing || message.author;
let compliments = ["Your smile is contagious.", "You look great today.", "You're a smart cookie.", "I bet you make babies smile.", "You have impeccable manners.", "I like your style.", "You have the best laugh.", "I appreciate you.", "You are the most perfect you there is.", "You are enough.", "You're strong.", "Your perspective is refreshing.", "You're an awesome friend.", "You light up the room.", "You shine brighter than a shooting star.", "You deserve a hug right now.", "You should be proud of yourself.", "You're more helpful than you realize.", "You have a great sense of humor.", "You've got all the right moves!", "Is that your picture next to 'charming' in the dictionary?", "Your kindness is a balm to all who encounter it.", "You're all that and a super-size bag of chips.", "On a scale from 1 to 10, you're an 11.", "You are brave.", "You're even more beautiful on the inside than you are on the outside.", "You have the courage of your convictions.", "Your eyes are breathtaking.", "If cartoon bluebirds were real, a bunch of them would be sitting on your shoulders singing right now.", "You are making a difference.", "You're like sunshine on a rainy day.", "You bring out the best in other people.", "Your ability to recall random factoids at just the right time is impressive.", "You're a great listener.", "How is it that you always look great, even in sweatpants?", "Everything would be better if more people were like you!", "I bet you sweat glitter.", "You were cool way before hipsters were cool.", "That color is perfect on you.", "Hanging out with you is always a blast.", "You always know -- and say -- exactly what I need to hear when I need to hear it.", "You smell really good.", "You may dance like no one's watching, but everyone's watching because you're an amazing dancer!", "Being around you makes everything better!", "When you say, 'I meant to do that,' I totally believe you.", "When you're not afraid to be yourself is when you're most incredible.", "Colors seem brighter when you're around.", "You're more fun than a ball pit filled with candy. (And seriously, what could be more fun than that?)", "That thing you don't like about yourself is what makes you so interesting.", "You're wonderful.", "You have cute elbows. For reals!", "Jokes are funnier when you tell them.", "You're better than a triple-scoop ice cream cone. With sprinkles.", "Your bellybutton is kind of adorable.", "Your hair looks stunning.", "You're one of a kind!", "You're inspiring.", "If you were a box of crayons, you'd be the giant name-brand one with the built-in sharpener.", "You should be thanked more often. So thank you!!", "Our community is better because you're in it.", "Someone is getting through something hard right now because you've got their back.", "You have the best ideas.", "You always know how to find that silver lining.", "Everyone gets knocked down sometimes, but you always get back up and keep going.", "You're a candle in the darkness.", "You're a great example to others.", "Being around you is like being on a happy little vacation.", "You always know just what to say.", "You're always learning new things and trying to better yourself, which is awesome.", "If someone based an Internet meme on you, it would have impeccable grammar.", "You could survive a Zombie apocalypse.", "You're more fun than bubble wrap.", "When you make a mistake, you fix it.", "Who raised you? They deserve a medal for a job well done.", "You're great at figuring stuff out.", "Your voice is magnificent.", "The people you love are lucky to have you in their lives.", "You're like a breath of fresh air.", "You're gorgeous -- and that's the least interesting thing about you, too.", "You're so thoughtful.", "Your creative potential seems limitless.", "Your name suits you to a T.", "You're irresistible when you blush.", "Actions speak louder than words, and yours tell an incredible story.", "Somehow you make time stop and fly at the same time.", "When you make up your mind about something, nothing stands in your way.", "You seem to really know who you are.", "Any team would be lucky to have you on it.", "In high school I bet you were voted 'most likely to keep being awesome.'", "I bet you do the crossword puzzle in ink.", "Babies and small animals probably love you.", "If you were a scented candle they'd call it Perfectly Imperfect (and it would smell like summer).", "There's ordinary, and then there's you.", "You're someone's reason to smile.", "You're even better than a unicorn, because you're real.", "How do you keep being so funny and making everyone laugh?", "You have a good head on your shoulders.", "Has anyone ever told you that you have great posture?", "The way you treasure your loved ones is incredible.", "You're really something special.", "You're a gift to those around you.", "You don't deserve it."];
let compliments = ['Your smile is contagious.', 'You look great today.', 'You\'re a smart cookie.', 'I bet you make babies smile.', 'You have impeccable manners.', 'I like your style.', 'You have the best laugh.', 'I appreciate you.', 'You are the most perfect you there is.', 'You are enough.', 'You\'re strong.', 'Your perspective is refreshing.', 'You\'re an awesome friend.', 'You light up the room.', 'You shine brighter than a shooting star.', 'You deserve a hug right now.', 'You should be proud of yourself.', 'You\'re more helpful than you realize.', 'You have a great sense of humor.', 'You\'ve got all the right moves!', 'Is that your picture next to \'charming\' in the dictionary?', 'Your kindness is a balm to all who encounter it.', 'You\'re all that and a super-size bag of chips.', 'On a scale from 1 to 10, you\'re an 11.', 'You are brave.', 'You\'re even more beautiful on the inside than you are on the outside.', 'You have the courage of your convictions.', 'Your eyes are breathtaking.', 'If cartoon bluebirds were real, a bunch of them would be sitting on your shoulders singing right now.', 'You are making a difference.', 'You\'re like sunshine on a rainy day.', 'You bring out the best in other people.', 'Your ability to recall random factoids at just the right time is impressive.', 'You\'re a great listener.', 'How is it that you always look great, even in sweatpants?', 'Everything would be better if more people were like you!', 'I bet you sweat glitter.', 'You were cool way before hipsters were cool.', 'That color is perfect on you.', 'Hanging out with you is always a blast.', 'You always know -- and say -- exactly what I need to hear when I need to hear it.', 'You smell really good.', 'You may dance like no one\'s watching, but everyone\'s watching because you\'re an amazing dancer!', 'Being around you makes everything better!', 'When you say, \'I meant to do that,\' I totally believe you.', 'When you\'re not afraid to be yourself is when you\'re most incredible.', 'Colors seem brighter when you\'re around.', 'You\'re more fun than a ball pit filled with candy. (And seriously, what could be more fun than that?)', 'That thing you don\'t like about yourself is what makes you so interesting.', 'You\'re wonderful.', 'You have cute elbows. For reals!', 'Jokes are funnier when you tell them.', 'You\'re better than a triple-scoop ice cream cone. With sprinkles.', 'Your bellybutton is kind of adorable.', 'Your hair looks stunning.', 'You\'re one of a kind!', 'You\'re inspiring.', 'If you were a box of crayons, you\'d be the giant name-brand one with the built-in sharpener.', 'You should be thanked more often. So thank you!!', 'Our community is better because you\'re in it.', 'Someone is getting through something hard right now because you\'ve got their back.', 'You have the best ideas.', 'You always know how to find that silver lining.', 'Everyone gets knocked down sometimes, but you always get back up and keep going.', 'You\'re a candle in the darkness.', 'You\'re a great example to others.', 'Being around you is like being on a happy little vacation.', 'You always know just what to say.', 'You\'re always learning new things and trying to better yourself, which is awesome.', 'If someone based an Internet meme on you, it would have impeccable grammar.', 'You could survive a Zombie apocalypse.', 'You\'re more fun than bubble wrap.', 'When you make a mistake, you fix it.', 'Who raised you? They deserve a medal for a job well done.', 'You\'re great at figuring stuff out.', 'Your voice is magnificent.', 'The people you love are lucky to have you in their lives.', 'You\'re like a breath of fresh air.', 'You\'re gorgeous -- and that\'s the least interesting thing about you, too.', 'You\'re so thoughtful.', 'Your creative potential seems limitless.', 'Your name suits you to a T.', 'You\'re irresistible when you blush.', 'Actions speak louder than words, and yours tell an incredible story.', 'Somehow you make time stop and fly at the same time.', 'When you make up your mind about something, nothing stands in your way.', 'You seem to really know who you are.', 'Any team would be lucky to have you on it.', 'In high school I bet you were voted \'most likely to keep being awesome.\'', 'I bet you do the crossword puzzle in ink.', 'Babies and small animals probably love you.', 'If you were a scented candle they\'d call it Perfectly Imperfect (and it would smell like summer).', 'There\'s ordinary, and then there\'s you.', 'You\'re someone\'s reason to smile.', 'You\'re even better than a unicorn, because you\'re real.', 'How do you keep being so funny and making everyone laugh?', 'You have a good head on your shoulders.', 'Has anyone ever told you that you have great posture?', 'The way you treasure your loved ones is incredible.', 'You\'re really something special.', 'You\'re a gift to those around you.', 'You don\'t deserve it.'];
compliments = compliments[Math.floor(Math.random() * compliments.length)];
return message.say(`${thingToCompliment}, ${compliments}`);
}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class FortuneCookieCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let fortunes = ["Do not seek so much to find the answer as much as to understand the question better.", "You will soon be honored by someone you respect.", "Happiness comes from a good life.", "You are contemplating some action which will bring credit upon you.", "Be prepared for extra energy.", "You are admired for your adventurous ways.", "The love of your life is sitting across from you.", "Beauty is simply beauty. Originality is magical.", "Never quit!", "Today is an ideal time to water your personal garden.", "Questions provide the key to unlocking our unlimited potential.", "Expect great things and great things will come.", "The Greatest War Sometimes Isn't On The Battlefield But Against Oneself.", "Become who you are.", "In case of fire, keep calm, pay bill and run.", "Anyone who dares to be, can never be weak.", "You broke my cookie!", "Dream lofty dreams, and as you dream, so shall you become.", "You've got what it takes, but it will take everything you've got!", "Trust your intuition.", "The wise are aware of their treasure, while fools follow their vanity.", "You will always have good luck in your personal affairs.", "You don't need talent to gain experience.", "All the preparation you've done will finally be paying off!", "Determination is the wake-up call to the human will.", "The most useless energy is trying to change what and who God so carefully created.", "You cannot become rich except by enriching others.", "Your happiness is intertwined with your outlook on life.", "Sing and rejoice, fortune is smiling on you.", "Well-arranged time is the surest sign of a well-arranged mind."];
let fortunes = ['Do not seek so much to find the answer as much as to understand the question better.', 'You will soon be honored by someone you respect.', 'Happiness comes from a good life.', 'You are contemplating some action which will bring credit upon you.', 'Be prepared for extra energy.', 'You are admired for your adventurous ways.', 'The love of your life is sitting across from you.', 'Beauty is simply beauty. Originality is magical.', 'Never quit!', 'Today is an ideal time to water your personal garden.', 'Questions provide the key to unlocking our unlimited potential.', 'Expect great things and great things will come.', 'The Greatest War Sometimes Isn\'t On The Battlefield But Against Oneself.', 'Become who you are.', 'In case of fire, keep calm, pay bill and run.', 'Anyone who dares to be, can never be weak.', 'You broke my cookie!', 'Dream lofty dreams, and as you dream, so shall you become.', 'You\'ve got what it takes, but it will take everything you\'ve got!', 'Trust your intuition.', 'The wise are aware of their treasure, while fools follow their vanity.', 'You will always have good luck in your personal affairs.', 'You don\'t need talent to gain experience.', 'All the preparation you\'ve done will finally be paying off!', 'Determination is the wake-up call to the human will.', 'The most useless energy is trying to change what and who God so carefully created.', 'You cannot become rich except by enriching others.', 'Your happiness is intertwined with your outlook on life.', 'Sing and rejoice, fortune is smiling on you.', 'Well-arranged time is the surest sign of a well-arranged mind.'];
fortunes = fortunes[Math.floor(Math.random() * fortunes.length)];
return message.say(fortunes);
}
+6 -6
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RandomNameGen extends commando.Command {
module.exports = class RandomNameCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'name',
@@ -31,17 +31,17 @@ module.exports = class RandomNameGen extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let randomFirstMale = ["Bob", "Daniel", "Logan", "Chris", "Nathan", "George", "Mart", "Charlie", "Felix", "Ralph", "William", "Max", "Jerry", "Marty", "Joshua", "Cody", "Richard", "Alex", "Alexander", "Jordan", "Zachary", "Bill", "Alfred", "Bruce", "Caiden", "Calvin", "Eric", "Robert", "Mark", "Miles", "Nash", "Ronald", "Ivan", "Edgar", "Royal", "Augustine", "Dominic", "Noel", "Rocky", "Grover", "Paul", "Jeremy", "Stevie", "Brock", "Jc", "Tony", "Enoch", "Zachery", "Harvey", "Gilbert", "Chang", "Emery", "Carroll", "Odell", "Jean", "Archie", "Russ", "Barry", "Lowell", "Jacob", "Riku", "Frederic", "Levi", "Faustino", "Leland", "Domenic", "Irwin", "Moises", "Louie", "Larry", "Victor"];
let randomFirstMale = ['Bob', 'Daniel', 'Logan', 'Chris', 'Nathan', 'George', 'Mart', 'Charlie', 'Felix', 'Ralph', 'William', 'Max', 'Jerry', 'Marty', 'Joshua', 'Cody', 'Richard', 'Alex', 'Alexander', 'Jordan', 'Zachary', 'Bill', 'Alfred', 'Bruce', 'Caiden', 'Calvin', 'Eric', 'Robert', 'Mark', 'Miles', 'Nash', 'Ronald', 'Ivan', 'Edgar', 'Royal', 'Augustine', 'Dominic', 'Noel', 'Rocky', 'Grover', 'Paul', 'Jeremy', 'Stevie', 'Brock', 'Jc', 'Tony', 'Enoch', 'Zachery', 'Harvey', 'Gilbert', 'Chang', 'Emery', 'Carroll', 'Odell', 'Jean', 'Archie', 'Russ', 'Barry', 'Lowell', 'Jacob', 'Riku', 'Frederic', 'Levi', 'Faustino', 'Leland', 'Domenic', 'Irwin', 'Moises', 'Louie', 'Larry', 'Victor'];
randomFirstMale = randomFirstMale[Math.floor(Math.random() * randomFirstMale.length)];
let randomFirstFemale = ["Elizabeth", "Chelsey", "Rachel", "Logan", "Alex", "Jordan", "Mary", "Shirley", "Sandy", "Linda", "Audrey", "Autumn", "Gracie", "Grace", "Erin", "Catherine", "Stephanie", "Lucy", "Patty", "Julie", "Christina", "Fiona", "Riley", "Ashley", "Bree", "Lucila", "Wendi", "Evangelina", "Ricki", "Merna", "Tegan", "Venus", "Claris", "Tana", "Sakura", "Edythe", "Adena", "Princess", "Elnora", "Star", "Edyth", "Beverly", "Kelsie", "Letha", "Latisha", "Lolita", "Bernandine", "Jessenia", "Hannah", "Leonore", "Alene", "Fannie", "Bernardine", "Leena", "Tera", "Yvette", "Melisa", "Alissa", "Xiao", "Richelle", "Bridgett", "Sumiko", "Paulette", "Charlott", "Honey", "Veola", "Sherita", "Amanda", "Vannessa", "April", "Ruth"];
let randomFirstFemale = ['Elizabeth', 'Chelsey', 'Rachel', 'Logan', 'Alex', 'Jordan', 'Mary', 'Shirley', 'Sandy', 'Linda', 'Audrey', 'Autumn', 'Gracie', 'Grace', 'Erin', 'Catherine', 'Stephanie', 'Lucy', 'Patty', 'Julie', 'Christina', 'Fiona', 'Riley', 'Ashley', 'Bree', 'Lucila', 'Wendi', 'Evangelina', 'Ricki', 'Merna', 'Tegan', 'Venus', 'Claris', 'Tana', 'Sakura', 'Edythe', 'Adena', 'Princess', 'Elnora', 'Star', 'Edyth', 'Beverly', 'Kelsie', 'Letha', 'Latisha', 'Lolita', 'Bernandine', 'Jessenia', 'Hannah', 'Leonore', 'Alene', 'Fannie', 'Bernardine', 'Leena', 'Tera', 'Yvette', 'Melisa', 'Alissa', 'Xiao', 'Richelle', 'Bridgett', 'Sumiko', 'Paulette', 'Charlott', 'Honey', 'Veola', 'Sherita', 'Amanda', 'Vannessa', 'April', 'Ruth'];
randomFirstFemale = randomFirstFemale[Math.floor(Math.random() * randomFirstFemale.length)];
let randomLast = ["Walker", "Tworni", "Ross", "Smith", "Odendahl", "Deere", "Brown", "Williams", "Jones", "Miles", "Moss", "Roberto", "McFly", "McDonald", "Lewis", "Armstrong", "Stevenson", "Schwarzenegger", "Robinson", "Parker", "Piper", "Johnson", "Brantley", "Stewart", "Ree", "Talbot", "Seville", "Peace", "Spielberg", "Baggins", "Wilborn", "Vankirk", "Shireman", "Jimerson", "Masters", "Hack", "Satcher", "Younkin", "Aguila", "Duffey", "Burgin", "Highfall", "Wee", "Solari", "Tomaselli", "Basler", "Difranco", "Latch", "Rives", "Dolan", "Abraham", "Holter", "Portugal", "Lininger", "Holst", "Mccroy", "Follmer", "Hotchkiss", "Gassaway", "Wang", "Agron", "Raasch", "Gourd", "Czaja", "Marquart", "Papadopoulos", "Ringer", "Lax", "Sperling", "Galusha", "Alston"];
let randomLast = ['Walker', 'Tworni', 'Ross', 'Smith', 'Odendahl', 'Deere', 'Brown', 'Williams', 'Jones', 'Miles', 'Moss', 'Roberto', 'McFly', 'McDonald', 'Lewis', 'Armstrong', 'Stevenson', 'Schwarzenegger', 'Robinson', 'Parker', 'Piper', 'Johnson', 'Brantley', 'Stewart', 'Ree', 'Talbot', 'Seville', 'Peace', 'Spielberg', 'Baggins', 'Wilborn', 'Vankirk', 'Shireman', 'Jimerson', 'Masters', 'Hack', 'Satcher', 'Younkin', 'Aguila', 'Duffey', 'Burgin', 'Highfall', 'Wee', 'Solari', 'Tomaselli', 'Basler', 'Difranco', 'Latch', 'Rives', 'Dolan', 'Abraham', 'Holter', 'Portugal', 'Lininger', 'Holst', 'Mccroy', 'Follmer', 'Hotchkiss', 'Gassaway', 'Wang', 'Agron', 'Raasch', 'Gourd', 'Czaja', 'Marquart', 'Papadopoulos', 'Ringer', 'Lax', 'Sperling', 'Galusha', 'Alston'];
randomLast = randomLast[Math.floor(Math.random() * randomLast.length)];
const gender = args.gender.toLowerCase();
if (gender === "male") {
if (gender === 'male') {
return message.say(`${randomFirstMale} ${randomLast}`);
}
else if (gender === "female") {
else if (gender === 'female') {
return message.say(`${randomFirstFemale} ${randomLast}`);
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class PotatoCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}
console.log(`[Command] ${message.content}`);
let potato = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.gif", "6.png", "7.jpg", "8.jpg", "9.jpg"];
let potato = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.gif', '6.png', '7.jpg', '8.jpg', '9.jpg'];
potato = potato[Math.floor(Math.random() * potato.length)];
return message.channel.sendFile(`./images/Potato${potato}`);
}
+3 -3
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RandomPun extends commando.Command {
module.exports = class RandomPunCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'pun',
@@ -16,8 +16,8 @@ module.exports = class RandomPun extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}
console.log(`[Command] ${message.content}`);
let pun = ["Pun1.jpg", "Pun2.jpg", "Pun3.jpg", "Pun4.jpg", "Pun5.jpg", "Pun6.jpg", "Pun7.jpg", "Pun8.png", "Pun9.jpg", "Pun10.jpg", "Pun11.jpg", "Pun12.jpg", "Pun13.jpg", "Pun14.jpg", "Pun15.jpg", "Pun16.jpg", "Pun17.jpg", "Pun18.jpg", "Pun19.jpg", "Pun20.jpg", "Pun21.jpg", "Pun22.jpg", "Pun23.jpg", "Pun24.jpg", "Pun25.jpg", "Pun26.jpg", "Pun27.jpg", "Pun28.jpg", "Pun29.jpg", "Pun30.jpeg", "Pun31.jpg", "Pun32.jpg", "Pun33.jpg", "Pun34.png", "Pun35.jpg", "Pun36.jpg", "Pun37.jpg", "Pun38.jpg", "Pun39.jpg", "Pun40.jpg", "Pun41.jpg", "Pun42.jpg", "Pun43.jpg", "Pun44.jpg", "Pun45.gif", "Pun46.jpg", "Pun47.jpg", "Pun48.jpg", "Pun49.jpg", "Pun50.jpg", "Pun51.jpg", "Pun52.jpg", "Pun53.jpg"];
let pun = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.png', '9.jpg', '10.jpg', '11.jpg', '12.jpg', '13.jpg', '14.jpg', '15.jpg', '16.jpg', '17.jpg', '18.jpg', '19.jpg', '20.jpg', '21.jpg', '22.jpg', '23.jpg', '24.jpg', '25.jpg', '26.jpg', '27.jpg', '28.jpg', '29.jpg', '30.jpeg', '31.jpg', '32.jpg', '33.jpg', '34.png', '35.jpg', '36.jpg', '37.jpg', '38.jpg', '39.jpg', '40.jpg', '41.jpg', '42.jpg', '43.jpg', '44.jpg', '45.gif', '46.jpg', '47.jpg', '48.jpg', '49.jpg', '50.jpg', '51.jpg', '52.jpg', '53.jpg'];
pun = pun[Math.floor(Math.random() * pun.length)];
return message.channel.sendFile(`./images/${pun}`);
return message.channel.sendFile(`./images/Pun${pun}`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class QuantumCoin extends commando.Command {
module.exports = class QuantumCoinCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'quantumcoin',
+2 -2
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RoastMeCommand extends commando.Command {
module.exports = class RoastCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'roast',
@@ -26,7 +26,7 @@ module.exports = class RoastMeCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const userToRoast = args.thing || message.author;
let roasts = ["*puts you in the oven*", "You're so stupid.", "Sorry, I can't hear you over how annoying you are.", "I've got better things to do.", "You're as dumb as Cleverbot.", "Your IQ is lower than the Mariana Trench.", "You're so annoying even the flies stay away from your stench.", "Go away, please.", "I'd give you a nasty look but you've already got one.", "It looks like your face caught fire and someone tried to put it out with a hammer.", "Your family tree must be a cactus because everyone on it is a prick.", "Someday you will go far, and I hope you stay there.", "The zoo called. They're wondering how you got out of your cage.", "I was hoping for a battle of wits, but you appear to be unarmed.", "You are proof that evolution can go in reverse.", "Brains aren't everything, in your case, they're nothing.", "Sorry I didn't get that, I don't speak idiot.", "Why is it acceptable for you to be an idiot, but not for me to point it out?", "We all sprang from apes, but you did not spring far enough.", "You're an unknown command.", "If you could go anywhere I chose, I'd choose dead.", "Even monkeys can go to space, so clearly you lack some potential.", "It's brains over brawn, yet you have neither.", "You look like a monkey, and you smell like one too.", "Even among idiots you're lacking.", "You fail even when you're doing absolutely nothing.", "If there was a vote for 'least likely to succeed' you'd win first prize.", "I'm surrounded by idiots... Or, wait, that's just you.", "I wanna go home. Well, really I just want to get away from the awful aroma you've got going there.", "Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.", "If I had a nickel for every brain you don't have, I'd have one dollar.", "I'd help you succeed but you're incapable."];
let roasts = ['*puts you in the oven*', 'You\'re so stupid.', 'Sorry, I can\'t hear you over how annoying you are.', 'I\'ve got better things to do.', 'You\'re as dumb as Cleverbot.', 'Your IQ is lower than the Mariana Trench.', 'You\'re so annoying even the flies stay away from your stench.', 'Go away, please.', 'I\'d give you a nasty look but you\'ve already got one.', 'It looks like your face caught fire and someone tried to put it out with a hammer.', 'Your family tree must be a cactus because everyone on it is a prick.', 'Someday you will go far, and I hope you stay there.', 'The zoo called. They\'re wondering how you got out of your cage.', 'I was hoping for a battle of wits, but you appear to be unarmed.', 'You are proof that evolution can go in reverse.', 'Brains aren\'t everything, in your case, they\'re nothing.', 'Sorry I didn\'t get that, I don\'t speak idiot.', 'Why is it acceptable for you to be an idiot, but not for me to point it out?', 'We all sprang from apes, but you did not spring far enough.', 'You\'re an unknown command.', 'If you could go anywhere I chose, I\'d choose dead.', 'Even monkeys can go to space, so clearly you lack some potential.', 'It\'s brains over brawn, yet you have neither.', 'You look like a monkey, and you smell like one too.', 'Even among idiots you\'re lacking.', 'You fail even when you\'re doing absolutely nothing.', 'If there was a vote for \'least likely to succeed\' you\'d win first prize.', 'I\'m surrounded by idiots... Or, wait, that\'s just you.', 'I wanna go home. Well, really I just want to get away from the awful aroma you\'ve got going there.', 'Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.', 'If I had a dollar for every brain you don\'t have, I\'d have one dollar.', 'I\'d help you succeed but you\'re incapable.'];
roasts = roasts[Math.floor(Math.random() * roasts.length)];
if (!userToRoast) {
return message.reply(roasts);
+1 -1
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RollChooseCommand extends commando.Command {
module.exports = class RollCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'roll',
+1 -1
View File
@@ -13,7 +13,7 @@ module.exports = class RouletteCommand extends commando.Command {
group: 'response',
memberName: 'roulette',
description: 'Chooses a random member. (;roulette Who is the best?)',
examples: [";roulette Who is the best?"],
examples: [';roulette Who is the best?'],
guildOnly: true
});
}
+2 -2
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class VocaloidSongRndm extends commando.Command {
module.exports = class VocaloidCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'vocaloid',
@@ -19,7 +19,7 @@ module.exports = class VocaloidSongRndm extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let songs = ["https://www.youtube.com/watch?v=ebAKoRcYFTA", "https://www.youtube.com/watch?v=Mqps4anhz0Q", "https://www.youtube.com/watch?v=AUEiHQOCQ2M", "https://www.youtube.com/watch?v=oyteTOBxRm8", "https://www.youtube.com/watch?v=uwwU55zBYlQ", "https://www.youtube.com/watch?v=sSYoz0JmnZo", "https://www.youtube.com/watch?v=NpU4dsXW6EI", "https://www.youtube.com/watch?v=MzyXD8bNbvk", "https://www.youtube.com/watch?v=hyV4qGAPKac", "https://www.youtube.com/watch?v=pywNi6gD1FA", "https://www.youtube.com/watch?v=17FEtaiWdVg", "https://www.youtube.com/watch?v=fmrA-gxJxgQ", "https://www.youtube.com/watch?v=yOBWgSPrYVA", "https://www.youtube.com/watch?v=nCaqf9WhqOY", "https://www.youtube.com/watch?v=cQKGUgOfD8U", "https://www.youtube.com/watch?v=sK92X82T3Sk", "https://www.youtube.com/watch?v=AH5_sKwDw1E", "https://www.youtube.com/watch?v=dw-KJNqcK-Q", "https://www.youtube.com/watch?v=X47JmmqbMvc", "https://www.youtube.com/watch?v=ojQPpYVQt7U", "https://www.amazon.com/Gogatsu-Yamai-feat-Kagamine-Len/dp/B00P1BG27S", "https://www.youtube.com/watch?v=N1-Z8uslIsI", "https://www.youtube.com/watch?v=EAgk-t2zzqw", "https://www.youtube.com/watch?v=uLBC2kWYFo8", "https://www.youtube.com/watch?v=OXHYIlkZLUU", "https://www.youtube.com/watch?v=ObIa9wXbyMQ", "https://www.youtube.com/watch?v=dGNoCICGmo0", "https://www.youtube.com/watch?v=LcoyEZkTKfY", "https://www.youtube.com/watch?v=mKHaW0qd5Mw", "https://www.youtube.com/watch?v=GG627DYk_E4", "https://www.youtube.com/watch?v=jTm6Q5Pj_Jo", "https://www.youtube.com/watch?v=TVeIDmk3rBo", "https://www.youtube.com/watch?v=1K3in6w9tt4", "https://www.youtube.com/watch?v=07r67gGbtLQ", "https://www.youtube.com/watch?v=243vPl8HdVk", "https://www.youtube.com/watch?v=zweVJrnE1uY", "https://www.youtube.com/watch?v=RKtoreimcQ8", "https://www.youtube.com/watch?v=Je6dCVfHvkU", "https://www.youtube.com/watch?v=UxFv12y_evM", "https://www.youtube.com/watch?v=2HegQtmJeto", "https://www.youtube.com/watch?v=8-Epnpruww0"];
let songs = ['https://www.youtube.com/watch?v=ebAKoRcYFTA', 'https://www.youtube.com/watch?v=Mqps4anhz0Q', 'https://www.youtube.com/watch?v=AUEiHQOCQ2M', 'https://www.youtube.com/watch?v=oyteTOBxRm8', 'https://www.youtube.com/watch?v=uwwU55zBYlQ', 'https://www.youtube.com/watch?v=sSYoz0JmnZo', 'https://www.youtube.com/watch?v=NpU4dsXW6EI', 'https://www.youtube.com/watch?v=MzyXD8bNbvk', 'https://www.youtube.com/watch?v=hyV4qGAPKac', 'https://www.youtube.com/watch?v=pywNi6gD1FA', 'https://www.youtube.com/watch?v=17FEtaiWdVg', 'https://www.youtube.com/watch?v=fmrA-gxJxgQ', 'https://www.youtube.com/watch?v=yOBWgSPrYVA', 'https://www.youtube.com/watch?v=nCaqf9WhqOY', 'https://www.youtube.com/watch?v=cQKGUgOfD8U', 'https://www.youtube.com/watch?v=sK92X82T3Sk', 'https://www.youtube.com/watch?v=AH5_sKwDw1E', 'https://www.youtube.com/watch?v=dw-KJNqcK-Q', 'https://www.youtube.com/watch?v=X47JmmqbMvc', 'https://www.youtube.com/watch?v=ojQPpYVQt7U', 'https://www.amazon.com/Gogatsu-Yamai-feat-Kagamine-Len/dp/B00P1BG27S', 'https://www.youtube.com/watch?v=N1-Z8uslIsI', 'https://www.youtube.com/watch?v=EAgk-t2zzqw', 'https://www.youtube.com/watch?v=uLBC2kWYFo8', 'https://www.youtube.com/watch?v=OXHYIlkZLUU', 'https://www.youtube.com/watch?v=ObIa9wXbyMQ', 'https://www.youtube.com/watch?v=dGNoCICGmo0', 'https://www.youtube.com/watch?v=LcoyEZkTKfY', 'https://www.youtube.com/watch?v=mKHaW0qd5Mw', 'https://www.youtube.com/watch?v=GG627DYk_E4', 'https://www.youtube.com/watch?v=jTm6Q5Pj_Jo', 'https://www.youtube.com/watch?v=TVeIDmk3rBo', 'https://www.youtube.com/watch?v=1K3in6w9tt4', 'https://www.youtube.com/watch?v=07r67gGbtLQ', 'https://www.youtube.com/watch?v=243vPl8HdVk', 'https://www.youtube.com/watch?v=zweVJrnE1uY', 'https://www.youtube.com/watch?v=RKtoreimcQ8', 'https://www.youtube.com/watch?v=Je6dCVfHvkU', 'https://www.youtube.com/watch?v=UxFv12y_evM', 'https://www.youtube.com/watch?v=2HegQtmJeto', 'https://www.youtube.com/watch?v=8-Epnpruww0'];
songs = songs[Math.floor(Math.random() * songs.length)];
return message.say(songs);
}
+2 -2
View File
@@ -1,6 +1,6 @@
const commando = require('discord.js-commando');
module.exports = class RandomXiaoPai extends commando.Command {
module.exports = class XiaoCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'xiaopai',
@@ -19,7 +19,7 @@ module.exports = class RandomXiaoPai extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'ATTACH_FILES'])) return;
}
console.log(`[Command] ${message.content}`);
let XiaoPai = ["1.png", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.png", "9.png", "10.png", "11.png", "12.png", "13.jpg", "14.jpg", "15.png", "16.jpg", "17.png", "18.gif", "19.png", "20.jpg", "21.jpg"];
let XiaoPai = ['1.png', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.png', '9.png', '10.png', '11.png', '12.png', '13.jpg', '14.jpg', '15.png', '16.jpg', '17.png', '18.gif', '19.png', '20.jpg', '21.jpg'];
XiaoPai = XiaoPai[Math.floor(Math.random() * XiaoPai.length)];
return message.channel.sendFile(`./images/Xiao${XiaoPai}`);
}
+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = class AppStoreCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Something went wrong!");
return message.say(':x: Error! Something went wrong!');
}
}
};
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = class BotSearchCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Bot not Found!");
return message.say(':x: Error! Bot not Found!');
}
}
};
+1 -1
View File
@@ -49,7 +49,7 @@ module.exports = class DefineCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Word not Found!");
return message.say(':x: Error! Word not Found!');
}
}
};
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = class ForecastCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Make sure you typed the location correctly!");
return message.say(':x: Error! Make sure you typed the location correctly!');
}
}
};
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = class NeopetCommand extends commando.Command {
name: 'neopet',
group: 'search',
memberName: 'neopet',
description: "Gives a Neopet's image, searchable by ID. (;neopet rjwlsb8k)",
description: 'Gives a Neopet\'s image, searchable by ID. (;neopet rjwlsb8k)',
examples: [';neopet rjwlsb8k'],
args: [{
key: 'pet',
+1 -1
View File
@@ -70,7 +70,7 @@ module.exports = class OsuCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! User not Found!");
return message.say(':x: Error! User not Found!');
}
}
};
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = class PokedexCommand extends commando.Command {
.setAuthor(`#${pokedex.index[pokemon]} ${pokedex.name[pokemon]}`, `http://www.serebii.net/pokedex-sm/icon/${pokedex.index[pokemon]}.png`)
.setColor(0xFF0000)
.setDescription(pokedex.species[pokemon])
.setFooter("Pokédex", "http://cdn.bulbagarden.net/upload/thumb/3/36/479Rotom-Pokédex.png/250px-479Rotom-Pokédex.png")
.setFooter('Pokédex', 'http://cdn.bulbagarden.net/upload/thumb/3/36/479Rotom-Pokédex.png/250px-479Rotom-Pokédex.png')
.setThumbnail(`http://www.serebii.net/sunmoon/pokemon/${pokedex.index[pokemon]}.png`)
.addField('Entry',
pokedex.entry[pokemon])
+1 -1
View File
@@ -2,7 +2,7 @@ const commando = require('discord.js-commando');
const Discord = require('discord.js');
const request = require('superagent');
module.exports = class UrbanDictionary extends commando.Command {
module.exports = class UrbanCommand extends commando.Command {
constructor(Client) {
super(Client, {
name: 'urban',
+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = class WattpadCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Book not Found!");
return message.say(':x: Error! Book not Found!');
}
}
};
+1 -1
View File
@@ -64,7 +64,7 @@ module.exports = class WeatherCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Make sure you typed the location correctly!");
return message.say(':x: Error! Make sure you typed the location correctly!');
}
}
};
+3 -3
View File
@@ -23,7 +23,7 @@ module.exports = class WikipediaCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log(`[Command] ${message.content}`);
const thingToSearch = args.query.split(")").join("%29");
const thingToSearch = args.query.split(')').join('%29');
const title = encodeURI(thingToSearch);
try {
const response = await request
@@ -44,12 +44,12 @@ module.exports = class WikipediaCommand extends commando.Command {
.setColor(0xE7E7E7)
.setTitle(data.title)
.setURL(`https://en.wikipedia.org/wiki/${title}`)
.setAuthor("Wikipedia", "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png")
.setAuthor('Wikipedia', 'https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png')
.setDescription(description);
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Entry Not Found!");
return message.say(':x: Error! Entry Not Found!');
}
}
};
+1 -1
View File
@@ -49,7 +49,7 @@ module.exports = class YouTubeCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Something went wrong! Maybe no video was found?");
return message.say(':x: Error! Something went wrong! Maybe no video was found?');
}
}
};
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = class YuGiOhCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!");
return message.say(':x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!');
}
}
};
+2 -2
View File
@@ -25,8 +25,8 @@ module.exports = class CowsayCommand extends commando.Command {
const turnToCowsay = args.text;
return message.code(null, cowsay.say({
text: turnToCowsay,
e: "oO",
T: "U "
e: 'oO',
T: 'U '
})).catch(error => message.say(':x: Error! Perhaps the content is too long?'));
}
};
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class EmbedCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log(`[Command] ${message.content}`);
const embedMessage = message.content.split(" ").slice(1).join(" ");
const embedMessage = message.content.split(' ').slice(1).join(' ');
const embed = new Discord.RichEmbed()
.setAuthor(message.author.username, message.author.avatarURL)
.setColor(0x00AE86)
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class PirateCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
const turnToPirate = args.text;
const pirate = pirateSpeak.translate(turnToPirate);
if (pirate.length > 1950) return message.say(":x: Error! Your message is too long!");
if (pirate.length > 1950) return message.say(':x: Error! Your message is too long!');
return message.say(pirate);
}
};
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class ReverseCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const stringToReverse = args.text;
const reversed = stringToReverse.split("").reverse().join("");
const reversed = stringToReverse.split('').reverse().join('');
return message.say(reversed);
}
};
+2 -2
View File
@@ -1,7 +1,7 @@
const commando = require('discord.js-commando');
String.prototype.shuffle = function() {
let a = this.split(""),
let a = this.split(''),
n = a.length;
for (let i = n - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1));
@@ -9,7 +9,7 @@ String.prototype.shuffle = function() {
a[i] = a[j];
a[j] = tmp;
}
return a.join("");
return a.join('');
};
module.exports = class ShuffleCommand extends commando.Command {
+2 -2
View File
@@ -7,8 +7,8 @@ module.exports = class TemmieCommand extends commando.Command {
name: 'temmie',
group: 'textedit',
memberName: 'temmie',
description: "Translate text to Temmie speak. (;temmie I am Temmie)",
examples: [";temmie I am Temmie."],
description: 'Translate text to Temmie speak. (;temmie I am Temmie)',
examples: [';temmie I am Temmie.'],
args: [{
key: 'text',
prompt: 'What text would you like to convert to Temmie speak?',
+6 -6
View File
@@ -255,31 +255,31 @@ function isLetter(character) {
}
function translator(text) {
let translatedText = "";
let word = "";
let translatedText = '';
let word = '';
for (let i = 0; i < text.length; i += 1) {
let character = text[i];
if (isLetter(character)) {
word += character;
}
else {
if (word != "") {
if (word != '') {
let wordTranslate = translateWord(word);
translatedText += wordTranslate;
word = "";
word = '';
}
translatedText += character;
}
}
if (word !== "") translatedText += translateWord(word);
if (word !== '') translatedText += translateWord(word);
return translatedText;
}
module.exports = function(text) {
let currentTranslation = translator(text);
let temmify = currentTranslation.split("ing").join("in").split("!").join("!!!!111!11!1!!!1!!!1111!").split("'").join("");
let temmify = currentTranslation.split('ing').join('in').split('!').join('!!!!111!11!1!!!1!!!1111!').split("'").join('');
return temmify;
};
+2 -2
View File
@@ -115,7 +115,7 @@ module.exports = class TranslateCommand extends commando.Command {
group: 'textedit',
memberName: 'translate',
description: 'Translates text to a given language. (;translate ja Give me the money!)',
details: "**Codes:** af: Afrikaans, sq: Albanian, ar: Arabic, hy: Armenian, az: Azerbaijani, eu: Basque, be: Belarusian, bn: Bengali, bs: Bosnian, bg: Bulgarian, ca: Catalan, ceb: Cebuano, ny: Chichewa, zh-cn: Chinese Simplified, zh-tw: Chinese Traditional, co: Corsican, hr: Croatian, cs: Czech, da: Danish, nl: Dutch, en: English, eo: Esperanto, et: Estonian, tl: Filipino, fi: Finnish, fr: French, fy: Frisian, gl: Galician, ka: Georgian, de: German, el: Greek, gu: Gujarati, ht: Haitian Creole, ha: Hausa, haw: Hawaiian, iw: Hebrew, hi: Hindi, hmn: Hmong, hu: Hungarian, is: Icelandic, ig: Igbo, id: Indonesian, ga: Irish, it: Italian, ja: Japanese, jw: Javanese, kn: Kannada, kk: Kazakh, km: Khmer, ko: Korean, ku: Kurdish (Kurmanji), ky: Kyrgyz, lo: Lao, la: Latin, lv: Latvian, lt: Lithuanian, lb: Luxembourgish, mk: Macedonian, mg: Malagasy, ms: Malay, ml: Malayalam, mt: Maltese, mi: Maori, mr: Marathi, mn: Mongolian, my: Myanmar (Burmese), ne: Nepali, no: Norwegian, ps: Pashto, fa: Persian, pl: Polish, pt: Portuguese, ma: Punjabi, ro: Romanian, ru: Russian, sm: Samoan, gd: Scots Gaelic, sr: Serbian, st: Sesotho, sn: Shona, sd: Sindhi, si: Sinhala, sk: Slovak, sl: Slovenian, so: Somali, es: Spanish, su: Sudanese, sw: Swahili, sv: Swedish, tg: Tajik, ta: Tamil, te: Telugu, th: Thai, tr: Turkish, uk: Ukrainian, ur: Urdu, uz: Uzbek, vi: Vietnamese, cy: Welsh, xh: Xhosa, yi: Yiddish, yo: Yoruba, zu: Zulu",
details: '**Codes:** af: Afrikaans, sq: Albanian, ar: Arabic, hy: Armenian, az: Azerbaijani, eu: Basque, be: Belarusian, bn: Bengali, bs: Bosnian, bg: Bulgarian, ca: Catalan, ceb: Cebuano, ny: Chichewa, zh-cn: Chinese Simplified, zh-tw: Chinese Traditional, co: Corsican, hr: Croatian, cs: Czech, da: Danish, nl: Dutch, en: English, eo: Esperanto, et: Estonian, tl: Filipino, fi: Finnish, fr: French, fy: Frisian, gl: Galician, ka: Georgian, de: German, el: Greek, gu: Gujarati, ht: Haitian Creole, ha: Hausa, haw: Hawaiian, iw: Hebrew, hi: Hindi, hmn: Hmong, hu: Hungarian, is: Icelandic, ig: Igbo, id: Indonesian, ga: Irish, it: Italian, ja: Japanese, jw: Javanese, kn: Kannada, kk: Kazakh, km: Khmer, ko: Korean, ku: Kurdish (Kurmanji), ky: Kyrgyz, lo: Lao, la: Latin, lv: Latvian, lt: Lithuanian, lb: Luxembourgish, mk: Macedonian, mg: Malagasy, ms: Malay, ml: Malayalam, mt: Maltese, mi: Maori, mr: Marathi, mn: Mongolian, my: Myanmar (Burmese), ne: Nepali, no: Norwegian, ps: Pashto, fa: Persian, pl: Polish, pt: Portuguese, ma: Punjabi, ro: Romanian, ru: Russian, sm: Samoan, gd: Scots Gaelic, sr: Serbian, st: Sesotho, sn: Shona, sd: Sindhi, si: Sinhala, sk: Slovak, sl: Slovenian, so: Somali, es: Spanish, su: Sudanese, sw: Swahili, sv: Swedish, tg: Tajik, ta: Tamil, te: Telugu, th: Thai, tr: Turkish, uk: Ukrainian, ur: Urdu, uz: Uzbek, vi: Vietnamese, cy: Welsh, xh: Xhosa, yi: Yiddish, yo: Yoruba, zu: Zulu',
examples: [';translate ja Give me the the money!'],
args: [{
key: 'to',
@@ -162,7 +162,7 @@ module.exports = class TranslateCommand extends commando.Command {
return message.embed(embed);
}
catch (err) {
return message.say(":x: Error! Something went wrong!");
return message.say(':x: Error! Something went wrong!');
}
}
};
+3 -3
View File
@@ -12,8 +12,8 @@ module.exports = class WebhookCommand extends commando.Command {
],
group: 'textedit',
memberName: 'webhook',
description: "Posts a message to the webhook defined in config. (;webhook Hey guys!)",
examples: [";webhook Hey guys!"],
description: 'Posts a message to the webhook defined in config. (;webhook Hey guys!)',
examples: [';webhook Hey guys!'],
guildOnly: true,
args: [{
key: 'text',
@@ -39,7 +39,7 @@ module.exports = class WebhookCommand extends commando.Command {
.send({
content: content
});
return;
return null;
}
catch (err) {
return message.say(':x: Error! Message failed to send!');
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class YodaCommand extends commando.Command {
return message.say(response.text);
}
catch (err) {
return message.say(":x: Error! Something went wrong!");
return message.say(':x: Error! Something went wrong!');
}
}
};
+2 -2
View File
@@ -6,8 +6,8 @@ module.exports = class AvatarCommand extends commando.Command {
name: 'avatar',
group: 'userinfo',
memberName: 'avatar',
description: "Gives a link to someone's avatar. (;avatar @User)",
examples: [";avatar @XiaoBot"],
description: 'Gives a link to someone\'s avatar. (;avatar @User)',
examples: [';avatar @XiaoBot'],
args: [{
key: 'user',
prompt: 'Which user would you like to get the avatar of?',
+10 -10
View File
@@ -14,8 +14,8 @@ module.exports = class UserInfoCommand extends commando.Command {
],
group: 'userinfo',
memberName: 'user',
description: "Gives some info on a user. (;user @User)",
examples: [";user @User"],
description: 'Gives some info on a user. (;user @User)',
examples: [';user @User'],
guildOnly: true,
args: [{
key: 'user',
@@ -34,20 +34,20 @@ module.exports = class UserInfoCommand extends commando.Command {
let stat;
let color;
switch (user.presence.status) {
case "online":
stat = "<:vpOnline:212789758110334977> Online";
case 'online':
stat = '<:vpOnline:212789758110334977> Online';
color = 0x00AE86;
break;
case "idle":
stat = "<:vpAway:212789859071426561> Idle";
case 'idle':
stat = '<:vpAway:212789859071426561> Idle';
color = 0xFFFF00;
break;
case "dnd":
stat = "<:vpDnD:230093576355184640> Do Not Disturb";
case 'dnd':
stat = '<:vpDnD:230093576355184640> Do Not Disturb';
color = 0xFF0000;
break;
case "offline":
stat = "<:vpOffline:212790005943369728> Offline";
case 'offline':
stat = '<:vpOffline:212790005943369728> Offline';
color = 0x808080;
break;
}
+3 -3
View File
@@ -10,8 +10,8 @@ module.exports = class SendDMCommand extends commando.Command {
],
group: 'util',
memberName: 'senddm',
description: "Sends a DM to a user ID.",
examples: [";senddm 278305350804045834 This is a DM."],
description: 'Sends a DM to a user ID.',
examples: [';senddm 278305350804045834 This is a DM.'],
args: [{
key: 'userid',
prompt: 'What is the User ID of the user you wish to contact?',
@@ -20,7 +20,7 @@ module.exports = class SendDMCommand extends commando.Command {
if (userID.length === 18) {
return true;
}
return "Invalid ID.";
return 'Invalid ID.';
}
}, {
key: 'content',
+4 -4
View File
@@ -9,8 +9,8 @@ module.exports = class ServersCommand extends commando.Command {
],
group: 'util',
memberName: 'servers',
description: "Sends a list of all server names and IDs to the log.",
examples: [";servers"]
description: 'Sends a list of all server names and IDs to the log.',
examples: [';servers']
});
}
hasPermission(msg) {
@@ -23,8 +23,8 @@ module.exports = class ServersCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const guildCount = this.client.guilds.size;
const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(", ");
const guildNames = this.client.guilds.map(g => `${g.name} (${g.id})`).join(', ');
console.log(`${guildCount} Servers: ${guildNames}`);
return message.say("Sent the information to the console!");
return message.say('Sent the information to the console!');
}
};
+1 -2
View File
@@ -32,7 +32,6 @@
<li><a href="https://github.com/abalabahaha/opusscript">opusscript</a></li>
<li><a href="https://github.com/ecto/morse">morse</a></li>
<li><a href="https://cheerio.js.org/">cheerio</a></li>
<li><a href="https://github.com/maytis/sherlockjs">Sherlock</a></li>
</ul>
<h2>APIs</h2>
<ul>
@@ -55,7 +54,7 @@
<h2>Information</h2>
<ul>
<li><a href="https://discord.gg/fqQF8mc">Home Server</a></li>
<li>Command Count: 116</li>
<li>Command Count: 115</li>
<li>Server Host: <a href="https://www.heroku.com/">Heroku</a></li>
</ul>
</div>
+1 -2
View File
@@ -81,7 +81,6 @@
<li><a href="https://github.com/abalabahaha/opusscript">opusscript</a></li>
<li><a href="https://github.com/ecto/morse">morse</a></li>
<li><a href="https://cheerio.js.org/">cheerio</a></li>
<li><a href="https://github.com/maytis/sherlockjs">Sherlock</a></li>
</ul>
<h2>APIs</h2>
<ul>
@@ -105,7 +104,7 @@
<h2>Information</h2>
<ul>
<li><a href="https://discord.gg/fqQF8mc">Home Server</a></li>
<li>Command Count: 116</li>
<li>Command Count: 115</li>
<li>Server Host: <a href="https://www.heroku.com/">Heroku</a></li>
</ul>
</div>
+8 -2
View File
@@ -28,7 +28,13 @@ client.registry
])
.registerDefaultGroups()
.registerDefaultCommands({
prefix: false
prefix: false,
groups: false,
enable: false,
disable: false,
reload: false,
load: false,
unload: false
})
.registerCommandsIn(path.join(__dirname, 'commands'));
@@ -104,7 +110,7 @@ client.on('disconnect', () => {
client.once('ready', () => {
console.log('[Ready] Logged in!');
client.user.setGame(";help | dragonfire535");
client.user.setGame(';help | dragonfire535');
});
process.on('unhandledRejection', console.error);
-1
View File
@@ -16,7 +16,6 @@
"author": "dragonfire535",
"license": "ISC",
"dependencies": {
"Sherlock": "neilgupta/Sherlock",
"cheerio": "^0.22.0",
"cowsay": "^1.1.9",
"discord.js": "hydrabolt/discord.js",