diff --git a/commands/avataredit/3000years.js b/commands/avataredit/3000years.js index 6f770a36..85800455 100644 --- a/commands/avataredit/3000years.js +++ b/commands/avataredit/3000years.js @@ -20,10 +20,10 @@ class YearsCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if(message.mentions.users.first().avatarURL === null) { - message.channel.sendMessage(":x: This person has no avatar!"); + message.channel.send(":x: This person has no avatar!"); } else { let avatarurl = message.mentions.users.first().avatarURL; avatarurl = avatarurl.replace(".jpg", ".png"); diff --git a/commands/avataredit/beautiful.js b/commands/avataredit/beautiful.js index ef0e1993..a5b56b0e 100644 --- a/commands/avataredit/beautiful.js +++ b/commands/avataredit/beautiful.js @@ -20,10 +20,10 @@ class BeautifulCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if(message.mentions.users.first().avatarURL === null) { - message.channel.sendMessage(":x: This person has no avatar!"); + message.channel.send(":x: This person has no avatar!"); } else { let avatarurl = message.mentions.users.first().avatarURL; avatarurl = avatarurl.replace(".jpg", ".png"); diff --git a/commands/avataredit/bobross.js b/commands/avataredit/bobross.js index 506715f8..6d11b16c 100644 --- a/commands/avataredit/bobross.js +++ b/commands/avataredit/bobross.js @@ -20,10 +20,10 @@ class BobRossCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if(message.mentions.users.first().avatarURL === null) { - message.channel.sendMessage(":x: This person has no avatar!"); + message.channel.send(":x: This person has no avatar!"); } else { let avatarurl = message.mentions.users.first().avatarURL; avatarurl = avatarurl.replace(".jpg", ".png"); diff --git a/commands/avataredit/rip.js b/commands/avataredit/rip.js index 29c118dd..09468f59 100644 --- a/commands/avataredit/rip.js +++ b/commands/avataredit/rip.js @@ -20,10 +20,10 @@ class RIPCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if(message.mentions.users.first().avatarURL === null) { - message.channel.sendMessage(":x: This person has no avatar!"); + message.channel.send(":x: This person has no avatar!"); } else { let avatarurl = message.mentions.users.first().avatarURL; avatarurl = avatarurl.replace(".jpg", ".png"); diff --git a/commands/avataredit/steamcard.js b/commands/avataredit/steamcard.js index f4a2de9a..d06cce1b 100644 --- a/commands/avataredit/steamcard.js +++ b/commands/avataredit/steamcard.js @@ -21,10 +21,10 @@ class SteamCardCommand extends commando.Command { console.log("[Command] " + message.content); if(message.channel.type !== 'dm') { if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if(message.mentions.users.first().avatarURL === null) { - message.channel.sendMessage(":x: This person has no avatar!"); + message.channel.send(":x: This person has no avatar!"); } else { let userdisplayname = message.guild.member(message.mentions.users.first()).displayName; let avatarurl = message.mentions.users.first().avatarURL; @@ -49,7 +49,7 @@ class SteamCardCommand extends commando.Command { } } } else { - message.channel.sendMessage(':x: Error! This command does not work in DM!'); + message.channel.send(':x: Error! This command does not work in DM!'); } } } diff --git a/commands/botinfo/contact.js b/commands/botinfo/contact.js index d4958f0a..a1c8ec8c 100644 --- a/commands/botinfo/contact.js +++ b/commands/botinfo/contact.js @@ -20,10 +20,10 @@ class ContactCommand extends commando.Command { console.log("[Command] " + message.content); let banid = message.author.id; if (message.author.id === banlist.banned[banid]) { - message.channel.sendMessage("Sorry, you've been banned from using this command."); + message.channel.send("Sorry, you've been banned from using this command."); } else { - this.client.users.get('242699360352206850').sendMessage("**" + message.author.username + '#' + message.author.discriminator + " (" + message.author.id + ")" + ":**\n" + message.content.split(" ").slice(1).join(" ")); - message.channel.sendMessage('Message Sent! Thanks for your support!'); + this.client.users.get('242699360352206850').send("**" + message.author.username + '#' + message.author.discriminator + " (" + message.author.id + ")" + ":**\n" + message.content.split(" ").slice(1).join(" ")); + message.channel.send('Message Sent! Thanks for your support!'); } } } diff --git a/commands/botinfo/invite.js b/commands/botinfo/invite.js index 93b747a7..2d161d33 100644 --- a/commands/botinfo/invite.js +++ b/commands/botinfo/invite.js @@ -17,7 +17,7 @@ class InviteCommand extends commando.Command { if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return; } console.log("[Command] " + message.content); - message.channel.sendMessage("\nAdd me to your server with this link:\n" + "https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=519238" + "\nOr, come to my server with this link:\n" + "https://discord.gg/fqQF8mc"); + message.channel.send("\nAdd me to your server with this link:\n" + "https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=519238" + "\nOr, come to my server with this link:\n" + "https://discord.gg/fqQF8mc"); } } diff --git a/commands/botinfo/uptime.js b/commands/botinfo/uptime.js index ccc05431..ff891383 100644 --- a/commands/botinfo/uptime.js +++ b/commands/botinfo/uptime.js @@ -20,7 +20,7 @@ class UptimeCommand extends commando.Command { } console.log("[Command] " + message.content); let guilds = this.client.guilds.array().length; - message.channel.sendMessage("I've been active on this shard for: **" + moment.duration(this.client.uptime).format('d[ days], h[ hours], m[ minutes, and ]s[ seconds]') + "** in a total of " + guilds + " Servers."); + message.channel.send("I've been active on this shard for: **" + moment.duration(this.client.uptime).format('d[ days], h[ hours], m[ minutes, and ]s[ seconds]') + "** in a total of " + guilds + " Servers."); } } diff --git a/commands/guildinfo/emoji.js b/commands/guildinfo/emoji.js index 1c0ae825..9174f05a 100644 --- a/commands/guildinfo/emoji.js +++ b/commands/guildinfo/emoji.js @@ -19,9 +19,9 @@ class EmojiCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.channel.type === 'dm') { - message.channel.sendMessage(":x: This is a DM!"); + message.channel.send(":x: This is a DM!"); } else { - message.channel.sendMessage(message.guild.emojis.map(e => e).join(" ")); + message.channel.send(message.guild.emojis.map(e => e).join(" ")); } } } diff --git a/commands/guildinfo/guildinfo.js b/commands/guildinfo/guildinfo.js index 4e2c8292..9f98cf4d 100644 --- a/commands/guildinfo/guildinfo.js +++ b/commands/guildinfo/guildinfo.js @@ -20,7 +20,7 @@ class GuildInfoCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.channel.type === 'dm') { - message.channel.sendMessage(":x: This is a DM!"); + message.channel.send(":x: This is a DM!"); } else { const embed = new Discord.RichEmbed() .setColor(0x00AE86) diff --git a/commands/imageedit/meme.js b/commands/imageedit/meme.js index 23b2e2a3..21cbdea6 100644 --- a/commands/imageedit/meme.js +++ b/commands/imageedit/meme.js @@ -21,7 +21,7 @@ class MemeCommand extends commando.Command { console.log("[Command] " + message.content); let [type] = message.content.toLowerCase().split(" ").slice(1); if(type === "list") { - message.channel.sendMessage("**Type 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"); + message.channel.send("**Type 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"); } else if(message.content.includes("|")) { if(message.content.split(" ").slice(1).join(" ").match(/^[a-zA-Z0-9|.,!?'-\s]+$/)) { let bottomrow = message.content.toLowerCase().split("|").slice(1).join("-"); @@ -31,21 +31,21 @@ class MemeCommand extends commando.Command { toprow = toprow.replace("?", "~q"); let link = "https://memegen.link/" + type + "/" + toprow + "/" + bottomrow + ".jpg"; if(bottomrow.length > 100) { - message.channel.sendMessage(":x: Error! Bottom text is over 100 characters!"); + message.channel.send(":x: Error! Bottom text is over 100 characters!"); } else if(toprow.length > 100) { - message.channel.sendMessage(":x: Error! Top text is over 100 characters!"); + message.channel.send(":x: Error! Top text is over 100 characters!"); } else { if(memecodes.memecodes[type]) { - message.channel.sendFile(link).catch(error => message.channel.sendMessage(":x: An Error Occurred! Please try again later!")); + message.channel.sendFile(link).catch(error => message.channel.send(":x: An Error Occurred! Please try again later!")); } else { - message.channel.sendMessage(":x: Error! Meme type not found! (View list with ;meme list)"); + message.channel.send(":x: Error! Meme type not found! (View list with ;meme list)"); } } } else { - message.channel.sendMessage(":x: Error! Only letters, numbers, periods, commas, apostrophes, exclamation points, and question marks are allowed!"); + message.channel.send(":x: Error! Only letters, numbers, periods, commas, apostrophes, exclamation points, and question marks are allowed!"); } } else { - message.channel.sendMessage(":x: Split your two choices with a ' | '!"); + message.channel.send(":x: Split your two choices with a ' | '!"); } } } diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 217e1e24..4f362785 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -22,17 +22,17 @@ class BanCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.channel.type === 'dm') { - message.channel.sendMessage(":x: This is a DM!"); + message.channel.send(":x: This is a DM!"); } else { let username = message.mentions.users.first(); let member = message.guild.member(message.mentions.users.first()); let reason = message.content.split(" ").slice(2).join(" "); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(":x: Either too many or no members, only mention one person!"); + message.channel.send(":x: Either too many or no members, only mention one person!"); } else { if(message.member.hasPermission('BAN_MEMBERS')) { if(member.bannable === true) { - message.channel.sendMessage(":ok_hand:"); + message.channel.send(":ok_hand:"); message.guild.member(username).ban(); if(message.guild.channels.exists("name", "mod_logs")) { const embed = new Discord.RichEmbed() @@ -43,13 +43,13 @@ class BanCommand extends commando.Command { .setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Ban\n**Reason:** ' + reason); message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error); } else { - message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); + message.channel.send("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); } } else { - message.channel.sendMessage(":x: This member cannot be banned!"); + message.channel.send(":x: This member cannot be banned!"); } } else { - message.channel.sendMessage(":x: You don't have the Ban Members Permission!"); + message.channel.send(":x: You don't have the Ban Members Permission!"); } } } diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index f4f8dcdb..6569d2b6 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -22,17 +22,17 @@ class KickCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.channel.type === 'dm') { - message.channel.sendMessage(":x: This is a DM!"); + message.channel.send(":x: This is a DM!"); } else { let username = message.mentions.users.first(); let member = message.guild.member(message.mentions.users.first()); let reason = message.content.split(" ").slice(2).join(" "); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(":x: Either too many or no members, only mention one person!"); + message.channel.send(":x: Either too many or no members, only mention one person!"); } else { if(message.member.hasPermission('KICK_MEMBERS')) { if(member.kickable === true) { - message.channel.sendMessage(":ok_hand:"); + message.channel.send(":ok_hand:"); message.guild.member(username).kick(); if(message.guild.channels.exists("name", "mod_logs")) { const embed = new Discord.RichEmbed() @@ -43,13 +43,13 @@ class KickCommand extends commando.Command { .setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Kick\n**Reason:** ' + reason); message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error); } else { - message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); + message.channel.send("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); } } else { - message.channel.sendMessage(":x: This member cannot be kicked!"); + message.channel.send(":x: This member cannot be kicked!"); } } else { - message.channel.sendMessage(":x: You don't have the Kick Members Permission!"); + message.channel.send(":x: You don't have the Kick Members Permission!"); } } } diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 3d048491..975a5bab 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -22,15 +22,15 @@ class WarnCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.channel.type === 'dm') { - message.channel.sendMessage(":x: This is a DM!"); + message.channel.send(":x: This is a DM!"); } else { let username = message.mentions.users.first(); let reason = message.content.split(" ").slice(2).join(" "); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(":x: Either too many or no members, only mention one person!"); + message.channel.send(":x: Either too many or no members, only mention one person!"); } else { if(message.member.hasPermission('KICK_MEMBERS')) { - message.channel.sendMessage(":ok_hand:"); + message.channel.send(":ok_hand:"); if(message.guild.channels.exists("name", "mod_logs")) { const embed = new Discord.RichEmbed() .setAuthor(message.author.username + '#' + message.author.discriminator, message.author.avatarURL) @@ -40,10 +40,10 @@ class WarnCommand extends commando.Command { .setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Warn\n**Reason:** ' + reason); message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error); } else { - message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); + message.channel.send("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); } } else { - message.channel.sendMessage(":x: You don't have the Kick Members Permission!"); + message.channel.send(":x: You don't have the Kick Members Permission!"); } } } diff --git a/commands/numedit/math.js b/commands/numedit/math.js index bcd9c06f..fcde8796 100644 --- a/commands/numedit/math.js +++ b/commands/numedit/math.js @@ -21,9 +21,9 @@ class MathCommand extends commando.Command { let messagecontent = message.content.split(" ").slice(1).join(" "); try { let solved = math.eval(messagecontent); - message.channel.sendMessage(solved).catch(error => message.channel.sendMessage(":x: Error! Invalid statement!")); + message.channel.send(solved).catch(error => message.channel.send(":x: Error! Invalid statement!")); } catch(err) { - message.channel.sendMessage(":x: Error! Invalid statement!"); + message.channel.send(":x: Error! Invalid statement!"); } } } diff --git a/commands/numedit/roman.js b/commands/numedit/roman.js index 4049b51b..6418bd65 100644 --- a/commands/numedit/roman.js +++ b/commands/numedit/roman.js @@ -21,9 +21,9 @@ class RomanCommand extends commando.Command { let messagecontent = message.content.split(" ").slice(1).join(" "); let numberified = Number(messagecontent); if(numberified > 1000000) { - message.channel.sendMessage(':x: Error! Number is too high!'); + message.channel.send(':x: Error! Number is too high!'); } else { - message.channel.sendMessage(romanNumeralConverter.getRomanFromInteger(numberified)).catch(error => message.channel.sendMessage(':x: Error! Something went wrong! Perhaps you entered nothing?')); + message.channel.send(romanNumeralConverter.getRomanFromInteger(numberified)).catch(error => message.channel.send(':x: Error! Something went wrong! Perhaps you entered nothing?')); } } } diff --git a/commands/random/canyounot.js b/commands/random/canyounot.js index 478049e2..84be81b0 100644 --- a/commands/random/canyounot.js +++ b/commands/random/canyounot.js @@ -17,7 +17,7 @@ class CanYouNot extends commando.Command { if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return; } console.log("[Command] " + message.content); - message.channel.sendMessage('Can YOU not?'); + message.channel.send('Can YOU not?'); } } diff --git a/commands/random/giveflower.js b/commands/random/giveflower.js index d54ea7a1..9dd6e081 100644 --- a/commands/random/giveflower.js +++ b/commands/random/giveflower.js @@ -17,7 +17,7 @@ class GiveFlowerCommand extends commando.Command { if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return; } console.log("[Command] " + message.content); - message.channel.sendMessage('Ooh, what a pretty flower. What, I may have it? Thanks! I like flowers, yes? ♪'); + message.channel.send('Ooh, what a pretty flower. What, I may have it? Thanks! I like flowers, yes? ♪'); } } diff --git a/commands/random/lottery.js b/commands/random/lottery.js index 4d058fc2..0f216a65 100644 --- a/commands/random/lottery.js +++ b/commands/random/lottery.js @@ -19,9 +19,9 @@ class LotteryCommand extends commando.Command { console.log("[Command] " + message.content); let lotterynumber = ['Winner'][Math.floor(Math.random() * 100)]; if(lotterynumber === "Winner") { - message.channel.sendMessage("Wow " + message.author.username + "! You actually won! Great job!"); + message.channel.send("Wow " + message.author.username + "! You actually won! Great job!"); } else { - message.channel.sendMessage("Nope, sorry, " + message.author.username + ", you lost. RIP you."); + message.channel.send("Nope, sorry, " + message.author.username + ", you lost. RIP you."); } } } diff --git a/commands/random/mathgame.js b/commands/random/mathgame.js index 6f7bdf82..21780902 100644 --- a/commands/random/mathgame.js +++ b/commands/random/mathgame.js @@ -43,7 +43,7 @@ class MathGameCommand extends commando.Command { let randomExpression = randomValue1 + randomType + randomValue2; let solved = math.eval(randomExpression); if(randomValue === undefined) { - message.channel.sendMessage(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)'); + message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)'); } else { const embed = new Discord.RichEmbed() .setTitle('You have **ten** seconds to answer:') @@ -54,9 +54,9 @@ class MathGameCommand extends commando.Command { time: 10000, errors: ['time'], }).then((collected) => { - message.channel.sendMessage(`Good Job! You won!`); + message.channel.send(`Good Job! You won!`); }).catch(() => { - message.channel.sendMessage('Aw... Too bad, try again next time! The correct answer was: ' + solved); + message.channel.send('Aw... Too bad, try again next time! The correct answer was: ' + solved); }); }); } diff --git a/commands/random/slowclap.js b/commands/random/slowclap.js index 4ae22fe2..0a95abf7 100644 --- a/commands/random/slowclap.js +++ b/commands/random/slowclap.js @@ -17,7 +17,7 @@ class SlowClapCommand extends commando.Command { if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return; } console.log("[Command] " + message.content); - message.channel.sendMessage('*slow clap*'); + message.channel.send('*slow clap*'); } } diff --git a/commands/random/spam.js b/commands/random/spam.js index 461959f9..61e7462c 100644 --- a/commands/random/spam.js +++ b/commands/random/spam.js @@ -18,7 +18,7 @@ class SpamCommand extends commando.Command { if(!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return; } console.log("[Command] " + message.content); - message.channel.sendMessage("Spam!"); + message.channel.send("Spam!"); message.channel.sendFile("./images/Spam.jpg"); } } diff --git a/commands/random/today.js b/commands/random/today.js index 1c6e1253..01e25df2 100644 --- a/commands/random/today.js +++ b/commands/random/today.js @@ -35,7 +35,7 @@ class TodayCommand extends commando.Command { .setDescription(response.data.Events[randomNumber].text + ' (' + response.data.Events[randomNumber].year + ')'); message.channel.sendEmbed(embed).catch(console.error); }).catch(function (err) { - message.channel.sendMessage(":x: Error! Something went wrong!"); + message.channel.send(":x: Error! Something went wrong!"); }); } } diff --git a/commands/random/typinggame.js b/commands/random/typinggame.js index 917f19d1..b5826d76 100644 --- a/commands/random/typinggame.js +++ b/commands/random/typinggame.js @@ -53,7 +53,7 @@ class TypingGameCommand extends commando.Command { break; } if(time === undefined) { - message.channel.sendMessage(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)'); + message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)'); } else { const embed = new Discord.RichEmbed() .setTitle('You have **' + levelWord + '** seconds to type:') @@ -64,9 +64,9 @@ class TypingGameCommand extends commando.Command { time: time, errors: ['time'], }).then((collected) => { - message.channel.sendMessage(`Good Job! You won!`); + message.channel.send(`Good Job! You won!`); }).catch(() => { - message.channel.sendMessage('Aw... Too bad, try again next time!'); + message.channel.send('Aw... Too bad, try again next time!'); }); }); } diff --git a/commands/response/8ball.js b/commands/response/8ball.js index 165e6427..d9145a50 100644 --- a/commands/response/8ball.js +++ b/commands/response/8ball.js @@ -23,7 +23,7 @@ class MagicBall extends commando.Command { if(question === "") { question = "Not Specified." } - message.channel.sendMessage("Question: " + question + "\n:8ball: " + coin + " :8ball:"); + message.channel.send("Question: " + question + "\n:8ball: " + coin + " :8ball:"); } } diff --git a/commands/response/choose.js b/commands/response/choose.js index a316ac40..f6f00fcc 100644 --- a/commands/response/choose.js +++ b/commands/response/choose.js @@ -22,9 +22,9 @@ class ChooseCommand extends commando.Command { let choice1 = " " + message.content.replace(choice2, "").split(" ").slice(1).join(" "); let coin = [choice1, choice2]; coin = coin[Math.floor(Math.random() * coin.length)]; - message.channel.sendMessage("I choose" + coin.replace("|", "")); + message.channel.send("I choose" + coin.replace("|", "")); } else { - message.channel.sendMessage(":x: Split your two choices with a ' | '!"); + message.channel.send(":x: Split your two choices with a ' | '!"); } } } diff --git a/commands/response/coin.js b/commands/response/coin.js index 61faffce..b36066b1 100644 --- a/commands/response/coin.js +++ b/commands/response/coin.js @@ -19,7 +19,7 @@ class CoinFlipCommand extends commando.Command { console.log("[Command] " + message.content); let coin = ['Heads', 'Tails']; coin = coin[Math.floor(Math.random() * coin.length)]; - message.channel.sendMessage("It landed on " + coin); + message.channel.send("It landed on " + coin); } } diff --git a/commands/response/compliment.js b/commands/response/compliment.js index ab9d9b31..e3246fd4 100644 --- a/commands/response/compliment.js +++ b/commands/response/compliment.js @@ -23,7 +23,7 @@ class ComplimentCommand extends commando.Command { if(username === '') { message.reply(coin); } else { - message.channel.sendMessage(username + ", " + coin); + message.channel.send(username + ", " + coin); } } } diff --git a/commands/response/factcore.js b/commands/response/factcore.js index 59f1da1d..762b3a5a 100644 --- a/commands/response/factcore.js +++ b/commands/response/factcore.js @@ -19,7 +19,7 @@ class FactCore extends commando.Command { console.log("[Command] " + message.content); let coin = ["The billionth digit of Pi is 9.", "Humans can survive underwater. But not for very long.", "A nanosecond lasts one billionth of a second.", "Honey does not spoil.", "The atomic weight of Germanium is seven two point four six.", "An ostrich's eye is bigger than its brain.", "Rats cannot throw up.", "Iguanas can stay underwater for twenty-eight point seven minutes.", "The moon orbits the Earth every 27.32 days.", "A gallon of water weighs 8.34 pounds.", "According to Norse legend, thunder god Thor's chariot was pulled across the sky by two goats.", "Tungsten has the highest melting point of any metal, at 3,410 degrees Celsius.", "Gently cleaning the tongue twice a day is the most effective way to fight bad breath.", "The Tariff Act of 1789, established to protect domestic manufacture, was the second salute ever enacted by the United States government.", "The value of Pi is the ratio of any circle's circumference to its diameter in Euclidean space.", "The Mexican-American War ended in 1848 with the signing of the Treaty of Guadalupe Hidalgo.", "In 1879, Sandford Fleming first proposed the adoption of worldwide standardized time zones at the Royal Canadian Institute.", "Marie Curie invented the theory of radioactivity, the treatment of radioactivity, and the dying of radioactivity.", "At the end of The Seagull by Anton Chekhov, Konstantin kills himself.", "Hot water freezes quicker than cold water.", "The situation you are in is very dangerous.", "Polymerase I polypeptide A is a human gene.", "The sun is 333,330 times larger than Earth.", "Dental floss has superb tensile strength.", "Raseph, the Semitic god of war and plague, had a gazelle growing out of his forehead.", "Human tapeworms can grow up to twenty-two point nine meters.", "If you have trouble with simple counting, use the following mnemonic device: one comes before two comes before 60 comes after 12 comes before six trillion comes after 504. This should make your earlier counting difficulties seem like no big deal.", "The first person to prove that cow's milk is drinkable was very, very thirsty.", "Roman toothpaste was made with human urine. Urine as an ingredient in toothpaste continued to be used up until the 18th century.", "Volcano-ologists are experts in the study of volcanoes.", "In Victorian England, a commoner was not allowed to look directly at the Queen, due to a belief at the time that the poor had the ability to steal thoughts. Science now believes that less than 4 percent of poor people are able to do this.", "Cellular phones will not give you cancer. Only hepatitis.", "In Greek myth, Prometheus stole fire from the Gods and gave it to humankind. The jewelry he kept for himself.", "The Schrodinger's cat paradox outlines a situation in which a cat in a box must be considered, for all intents and purposes, simultaneously alive and dead. Schrodinger created this paradox as a justification for killing cats.", "In 1862, Abraham Lincoln signed the Emancipation Proclamation, freeing the slaves. Like everything he did, Lincoln freed the slaves while sleepwalking, and later had no memory of the event.", "The plural of surgeon general is surgeons general. The past tense of surgeons general is surgeonsed general.", "Contrary to popular belief, the Eskimo does not have one hundred different words for snow. They do, however, have two hundred and thirty-four words for fudge.", "Halley's Comet can be viewed orbiting Earth every seventy-six years. For the other seventy-five, it retreats to the heart of the sun, where it hibernates undisturbed.", "The first commercial airline flight took to the air in 1914. Everyone involved screamed the entire way.", "Edmund Hillary, the first person to climb Mount Everest, did so accidentally while chasing a bird.", "We will both die because of your negligence.", "This is a bad plan. You will fail.", "He will most likely kill you, violently.", "He will most likely kill you.", "You will be dead soon.", "You are going to die in this room.", "The Fact Sphere is a good person, whose insights are relevant.", "The Fact Sphere is a good sphere, with many friends.", "Dreams are the subconscious mind's way of reminding people to go to school naked and have their teeth fall out.", "The square root of rope is string.", "89 percent of magic tricks are not actually magic. Technically, they are sorcery.", "At some point in their lives 1 in 6 children will be abducted by the Dutch.", "According to most advanced algorithms, the world's best name is Craig.", "To make a photocopier, simply photocopy a mirror.", "Whales are twice as intelligent, and three times as delicious, as humans.", "Pants were invented by sailors in the sixteenth century to avoid Poseiden's wrath. It was believed that the sight of naked sailors angered the sea god.", "In Greek myth, the craftsman Daedalus invented human flight so a group of Minotaurs would stop teasing him about it.", "The average life expectancy of a rhinoceros in captivity is 15 years.", "China produces the world's second largest crop of soybeans.", "In 1948, at the request of a dying boy, baseball legend Babe Ruth ate seventy-five hot dogs, then died of hot dog poisoning.", "William Shakespeare did not exist. His plays were masterminded in 1589 by Francis Bacon, who used a Ouija board to enslave play-writing ghosts.", "It is incorrectly noted that Thomas Edison invented push-ups in 1878. Nikolai Tesla had in fact patented the activity three years earlier, under the name Tesla-cize.", "The automobile brake was not invented until 1895. Before this, someone had to remain in the car at all times, driving in circles until passengers returned from their errands.", "The most poisonous fish in the world is the orange ruffy. Everything but its eyes are made of deadly poison. The ruffy's eyes are composed of a less harmful, deadly poison.", "The occupation of court jester was invented accidentally, when a vassal's epilepsy was mistaken for capering.", "Before the Wright Brothers invented the airplane, anyone wanting to fly anywhere was required to eat 200 pounds of helium.", "Before the invention of scrambled eggs in 1912, the typical breakfast was either whole eggs still in the shell or scrambled rocks.", "During the Great Depression, the Tennessee Valley Authority outlawed pet rabbits, forcing many to hot glue-gun long ears onto their pet mice.", "The situation is hopeless.", "Diamonds are made when coal is put under intense pressure. Diamonds put under intense pressure become foam pellets, commonly used today as packing material.", "Corruption is at 25 percent.", "Corruption is at 50 percent.", "Fact: Space does not exist.", "The Fact Sphere is not defective. Its facts are wholly accurate and very interesting.", "The Fact Sphere is always right.", "You will never go into space.", "The Space Sphere will never go to space.", "While the submarine is vastly superior to the boat in every way, over 97 percent of people still use boats for aquatic transportation.", "The likelihood of you dying within the next five minutes is eighty-seven point six one percent.", "The likelihood of you dying violently within the next five minutes is eighty-seven point six one percent.", "You are about to get me killed.", "The Fact Sphere is the most intelligent sphere.", "The Fact Sphere is the most handsome sphere.", "The Fact Sphere is incredibly handsome.", "Sphere that insist of going into space are inferior to spheres who don't.", "Whoever wins this battle is clearly superior, and will earn the allegiance of the Fact Sphere.", "You could stand to lose a few pounds.", "Avocados have the highest fiber and calories of any fruit.", "Avocados have the highest fiber and calories of any fruit. They are found in Australians.", "Every square inch of the human body has 32 million bacteria on it.", "The average adult body contains half a pound of salt.", "The Adventure Sphere is a blowhard and a coward.", "Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve. Twelve.", "Pens. Pens. Pens. Pens. Pens. Pens. Pens.", "Apples. Oranges. Pears. Plums. Kumquats. Tangerines. Lemons. Limes. Avocado. Tomoato. Banana. Papaya. Guava.", "Error. Error. Error. File not found.", "Error. Error. Error. Fact not found.", "Fact not found.", "Warning, sphere corruption at twenty-- rats cannot throw up."]; coin = coin[Math.floor(Math.random() * coin.length)]; - message.channel.sendMessage(coin); + message.channel.send(coin); } } diff --git a/commands/response/fishy.js b/commands/response/fishy.js index 17b8729d..cd7256aa 100644 --- a/commands/response/fishy.js +++ b/commands/response/fishy.js @@ -19,7 +19,7 @@ class FishyCommand extends commando.Command { console.log("[Command] " + message.content); let coin = [':fish:', ':tropical_fish:', ':blowfish:']; coin = coin[Math.floor(Math.random() * coin.length)]; - message.channel.sendMessage("You caught a: " + coin); + message.channel.send("You caught a: " + coin); } } diff --git a/commands/response/fortune.js b/commands/response/fortune.js index 16cca8b3..f4cb9460 100644 --- a/commands/response/fortune.js +++ b/commands/response/fortune.js @@ -19,7 +19,7 @@ class FortuneCookieCommand extends commando.Command { 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."]; fortunes = fortunes[Math.floor(Math.random() * fortunes.length)]; - message.channel.sendMessage(fortunes); + message.channel.send(fortunes); } } diff --git a/commands/response/motivate.js b/commands/response/motivate.js index 590e6fc1..34e6c83e 100644 --- a/commands/response/motivate.js +++ b/commands/response/motivate.js @@ -23,7 +23,7 @@ class MotivateCommand extends commando.Command { if(username === '') { message.reply(coin); } else { - message.channel.sendMessage(username + ", " + coin); + message.channel.send(username + ", " + coin); } } } diff --git a/commands/response/name.js b/commands/response/name.js index 6bbb4ec5..90cb7d69 100644 --- a/commands/response/name.js +++ b/commands/response/name.js @@ -26,11 +26,11 @@ class RandomNameGen extends commando.Command { let randomfirstboth = [randomfirstmale, randomfirstfemale] randomfirstboth = randomfirstboth[Math.floor(Math.random() * randomfirstboth.length)]; if(message.content.toLowerCase().split(" ").slice(1).includes("male")) { - message.channel.sendMessage(randomfirstmale + " " + randomlast); + message.channel.send(randomfirstmale + " " + randomlast); } else if(message.content.toLowerCase().split(" ").slice(1).includes("female")) { - message.channel.sendMessage(randomfirstfemale + " " + randomlast); + message.channel.send(randomfirstfemale + " " + randomlast); } else { - message.channel.sendMessage(randomfirstboth + " " + randomlast); + message.channel.send(randomfirstboth + " " + randomlast); } } } diff --git a/commands/response/offspring.js b/commands/response/offspring.js index 4b5accfd..92709804 100644 --- a/commands/response/offspring.js +++ b/commands/response/offspring.js @@ -19,7 +19,7 @@ class OffspringCommand extends commando.Command { console.log("[Command] " + message.content); let gender = ['boy', 'girl']; gender = gender[Math.floor(Math.random() * gender.length)]; - message.channel.sendMessage("It's a " + gender + "!"); + message.channel.send("It's a " + gender + "!"); } } diff --git a/commands/response/quantumcoin.js b/commands/response/quantumcoin.js index 09791cf6..a7ed6ffe 100644 --- a/commands/response/quantumcoin.js +++ b/commands/response/quantumcoin.js @@ -19,7 +19,7 @@ class QuantumCoin extends commando.Command { console.log("[Command] " + message.content); let qcoin = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null']; qcoin = qcoin[Math.floor(Math.random() * qcoin.length)]; - message.channel.sendMessage("It landed " + qcoin); + message.channel.send("It landed " + qcoin); } } diff --git a/commands/response/ratewaifu.js b/commands/response/ratewaifu.js index f484c7f7..d9d7cb51 100644 --- a/commands/response/ratewaifu.js +++ b/commands/response/ratewaifu.js @@ -19,7 +19,7 @@ class RateWaifuCommand extends commando.Command { console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); let percentage = Math.floor(Math.random() * 10) + 1; - message.channel.sendMessage("I'd give " + username + " a " + percentage + "/10!"); + message.channel.send("I'd give " + username + " a " + percentage + "/10!"); } } diff --git a/commands/response/roast.js b/commands/response/roast.js index 45dc0be5..5de94780 100644 --- a/commands/response/roast.js +++ b/commands/response/roast.js @@ -23,7 +23,7 @@ class RoastMeCommand extends commando.Command { if(username === '') { message.reply(coin); } else { - message.channel.sendMessage(username + ", " + coin); + message.channel.send(username + ", " + coin); } } } diff --git a/commands/response/rockpaperscissors.js b/commands/response/rockpaperscissors.js index 65b55685..eac027ab 100644 --- a/commands/response/rockpaperscissors.js +++ b/commands/response/rockpaperscissors.js @@ -21,39 +21,39 @@ class RockPaperScissors extends commando.Command { let response = ['Paper', 'Rock', 'Scissors']; response = response[Math.floor(Math.random() * response.length)]; if(rps === undefined) { - message.channel.sendMessage(":x: Error! Your message contains nothing!"); + message.channel.send(":x: Error! Your message contains nothing!"); } else if(rps.includes("rock")) { if(response === "Rock") { - message.channel.sendMessage("Rock! Aw, it's a tie!"); + message.channel.send("Rock! Aw, it's a tie!"); } if(response === "Paper") { - message.channel.sendMessage("Paper! Yes! I win!"); + message.channel.send("Paper! Yes! I win!"); } if(response === "Scissors") { - message.channel.sendMessage("Scissors! Aw... I lose..."); + message.channel.send("Scissors! Aw... I lose..."); } } else if(rps.includes("paper")) { if(response === "Rock") { - message.channel.sendMessage("Rock! Aw... I lose..."); + message.channel.send("Rock! Aw... I lose..."); } if(response === "Paper") { - message.channel.sendMessage("Paper! Aw, it's a tie!"); + message.channel.send("Paper! Aw, it's a tie!"); } if(response === "Scissors") { - message.channel.sendMessage("Scissors! Yes! I win!"); + message.channel.send("Scissors! Yes! I win!"); } } else if(rps.includes("scissors")) { if(response === "Rock") { - message.channel.sendMessage("Rock! Yes! I win!"); + message.channel.send("Rock! Yes! I win!"); } if(response === "Paper") { - message.channel.sendMessage("Paper! Aw... I lose..."); + message.channel.send("Paper! Aw... I lose..."); } if(response === "Scissors") { - message.channel.sendMessage("Scissors! Aw, it's a tie!"); + message.channel.send("Scissors! Aw, it's a tie!"); } } else { - message.channel.sendMessage(":x: Error! Your choice is not Rock, Paper, or Scissors!"); + message.channel.send(":x: Error! Your choice is not Rock, Paper, or Scissors!"); } } } diff --git a/commands/response/roll.js b/commands/response/roll.js index eab75583..350bf98f 100644 --- a/commands/response/roll.js +++ b/commands/response/roll.js @@ -20,12 +20,12 @@ class RollChooseCommand extends commando.Command { let [value] = message.content.split(" ").slice(1); if(value === undefined) { let roll = Math.floor(Math.random() * 6) + 1; - message.channel.sendMessage("You rolled a " + roll) + message.channel.send("You rolled a " + roll) } else if(value.match("^[0-9]+$")) { let roll = Math.floor(Math.random() * value) + 1; - message.channel.sendMessage("You rolled a " + roll); + message.channel.send("You rolled a " + roll); } else { - message.channel.sendMessage(":x: Error! Your message either contains a number but the number is invalid, or the number is in the wrong place.\n:notepad_spiral: (Note: When using numbers such as 1,000, do not use a comma)"); + message.channel.send(":x: Error! Your message either contains a number but the number is invalid, or the number is in the wrong place.\n:notepad_spiral: (Note: When using numbers such as 1,000, do not use a comma)"); } } } diff --git a/commands/response/roulette.js b/commands/response/roulette.js index 0b25f71f..0edec6e9 100644 --- a/commands/response/roulette.js +++ b/commands/response/roulette.js @@ -18,9 +18,9 @@ class RouletteCommand extends commando.Command { } console.log("[Command] " + message.content); if(message.channel.type === 'dm') { - message.channel.sendMessage(':x: Error! This is a DM!'); + message.channel.send(':x: Error! This is a DM!'); } else { - message.channel.sendMessage("I choose " + message.guild.members.random().displayName + "!"); + message.channel.send("I choose " + message.guild.members.random().displayName + "!"); } } } diff --git a/commands/response/ship.js b/commands/response/ship.js index 137cde95..1e65917f 100644 --- a/commands/response/ship.js +++ b/commands/response/ship.js @@ -19,7 +19,7 @@ class ShipCommand extends commando.Command { console.log("[Command] " + message.content); let ship = message.content.split(" ").slice(1).join(" "); let percentage = Math.floor(Math.random() * 100) + 1; - message.channel.sendMessage("I'd give " + ship + " a " + percentage + "%!"); + message.channel.send("I'd give " + ship + " a " + percentage + "%!"); } } diff --git a/commands/response/slots.js b/commands/response/slots.js index b5f43ed3..2127057e 100644 --- a/commands/response/slots.js +++ b/commands/response/slots.js @@ -23,9 +23,9 @@ class SlotsCommand extends commando.Command { let slotThree = slotThing[Math.floor(Math.random() * slotThing.length)]; let slotFour = slotThing[Math.floor(Math.random() * slotThing.length)]; if(slotOne === slotTwo && slotOne === slotThree && slotOne === slotFour) { - message.channel.sendMessage(slotOne + '|' + slotTwo + '|' + slotThree + '|' + slotFour + "\nWow! You won! Great job... er... luck!"); + message.channel.send(slotOne + '|' + slotTwo + '|' + slotThree + '|' + slotFour + "\nWow! You won! Great job... er... luck!"); } else { - message.channel.sendMessage(slotOne + '|' + slotTwo + '|' + slotThree + '|' + slotFour + "\nAww... You lost... Guess it's just bad luck, huh?"); + message.channel.send(slotOne + '|' + slotTwo + '|' + slotThree + '|' + slotFour + "\nAww... You lost... Guess it's just bad luck, huh?"); } } } diff --git a/commands/response/vocaloid.js b/commands/response/vocaloid.js index 06c182d2..c184da79 100644 --- a/commands/response/vocaloid.js +++ b/commands/response/vocaloid.js @@ -19,7 +19,7 @@ class VocaloidSongRndm extends commando.Command { console.log("[Command] " + message.content); let coin = ["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"]; coin = coin[Math.floor(Math.random() * coin.length)]; - message.channel.sendMessage(coin); + message.channel.send(coin); } } diff --git a/commands/roleplay/cuddle.js b/commands/roleplay/cuddle.js index e2dfe6a4..5045c615 100644 --- a/commands/roleplay/cuddle.js +++ b/commands/roleplay/cuddle.js @@ -18,7 +18,7 @@ class CuddleCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *cuddles* ' + username); + message.channel.send(message.author + ' *cuddles* ' + username); } } diff --git a/commands/roleplay/divorce.js b/commands/roleplay/divorce.js index 2f8dd44c..ecfb178d 100644 --- a/commands/roleplay/divorce.js +++ b/commands/roleplay/divorce.js @@ -18,7 +18,7 @@ class DivorceCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *divorces* ' + username); + message.channel.send(message.author + ' *divorces* ' + username); } } diff --git a/commands/roleplay/eat.js b/commands/roleplay/eat.js index a09a00bf..54b0ceda 100644 --- a/commands/roleplay/eat.js +++ b/commands/roleplay/eat.js @@ -18,7 +18,7 @@ class EatCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *eats* ' + username); + message.channel.send(message.author + ' *eats* ' + username); } } diff --git a/commands/roleplay/falconpunch.js b/commands/roleplay/falconpunch.js index ff59d0d3..1b03400a 100644 --- a/commands/roleplay/falconpunch.js +++ b/commands/roleplay/falconpunch.js @@ -18,7 +18,7 @@ class FalconPunchCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *falcon punches* ' + username); + message.channel.send(message.author + ' *falcon punches* ' + username); } } diff --git a/commands/roleplay/fistbump.js b/commands/roleplay/fistbump.js index 25ebf9d7..720cee75 100644 --- a/commands/roleplay/fistbump.js +++ b/commands/roleplay/fistbump.js @@ -18,7 +18,7 @@ class FistBumpCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *fistbumps* ' + username + ' *badalalala* '); + message.channel.send(message.author + ' *fistbumps* ' + username + ' *badalalala* '); } } diff --git a/commands/roleplay/highfive.js b/commands/roleplay/highfive.js index 08f78944..2c8ba48a 100644 --- a/commands/roleplay/highfive.js +++ b/commands/roleplay/highfive.js @@ -18,7 +18,7 @@ class HighFivesCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *high fives* ' + username); + message.channel.send(message.author + ' *high fives* ' + username); } } diff --git a/commands/roleplay/hitwithshovel.js b/commands/roleplay/hitwithshovel.js index deb488f4..cefe34ed 100644 --- a/commands/roleplay/hitwithshovel.js +++ b/commands/roleplay/hitwithshovel.js @@ -18,7 +18,7 @@ class HitwithShovelCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *hits* ' + username + ' *with a shovel* '); + message.channel.send(message.author + ' *hits* ' + username + ' *with a shovel* '); } } diff --git a/commands/roleplay/hug.js b/commands/roleplay/hug.js index 01186ea4..5916aca2 100644 --- a/commands/roleplay/hug.js +++ b/commands/roleplay/hug.js @@ -18,7 +18,7 @@ class HugCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *hugs* ' + username); + message.channel.send(message.author + ' *hugs* ' + username); } } diff --git a/commands/roleplay/inhales.js b/commands/roleplay/inhales.js index b1169bc9..213b2949 100644 --- a/commands/roleplay/inhales.js +++ b/commands/roleplay/inhales.js @@ -18,7 +18,7 @@ class InhaleCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *inhales* ' + username + ' *but gained no ability...* '); + message.channel.send(message.author + ' *inhales* ' + username + ' *but gained no ability...* '); } } diff --git a/commands/roleplay/kill.js b/commands/roleplay/kill.js index d989dad6..d9ba811f 100644 --- a/commands/roleplay/kill.js +++ b/commands/roleplay/kill.js @@ -18,7 +18,7 @@ class KillCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *kills* ' + username); + message.channel.send(message.author + ' *kills* ' + username); } } diff --git a/commands/roleplay/kiss.js b/commands/roleplay/kiss.js index 4217f0ec..53541cc3 100644 --- a/commands/roleplay/kiss.js +++ b/commands/roleplay/kiss.js @@ -18,7 +18,7 @@ class KissCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *kisses* ' + username); + message.channel.send(message.author + ' *kisses* ' + username); } } diff --git a/commands/roleplay/marries.js b/commands/roleplay/marries.js index 4a7b50df..1d6d9a2f 100644 --- a/commands/roleplay/marries.js +++ b/commands/roleplay/marries.js @@ -18,7 +18,7 @@ class MarryCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *marries* ' + username); + message.channel.send(message.author + ' *marries* ' + username); } } diff --git a/commands/roleplay/pat.js b/commands/roleplay/pat.js index 58134a7a..8d40f929 100644 --- a/commands/roleplay/pat.js +++ b/commands/roleplay/pat.js @@ -18,7 +18,7 @@ class PatCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *pats* ' + username); + message.channel.send(message.author + ' *pats* ' + username); } } diff --git a/commands/roleplay/poke.js b/commands/roleplay/poke.js index f16ced20..ce44cb2a 100644 --- a/commands/roleplay/poke.js +++ b/commands/roleplay/poke.js @@ -18,7 +18,7 @@ class PokeCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *pokes* ' + username); + message.channel.send(message.author + ' *pokes* ' + username); } } diff --git a/commands/roleplay/punch.js b/commands/roleplay/punch.js index a1319fea..4f0949fb 100644 --- a/commands/roleplay/punch.js +++ b/commands/roleplay/punch.js @@ -18,7 +18,7 @@ class PunchCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *punches* ' + username); + message.channel.send(message.author + ' *punches* ' + username); } } diff --git a/commands/roleplay/slap.js b/commands/roleplay/slap.js index 999a7ad8..387f7c47 100644 --- a/commands/roleplay/slap.js +++ b/commands/roleplay/slap.js @@ -18,7 +18,7 @@ class SlapCommand extends commando.Command { } console.log("[Command] " + message.content); let username = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(message.author + ' *slaps* ' + username); + message.channel.send(message.author + ' *slaps* ' + username); } } diff --git a/commands/search/botinfo.js b/commands/search/botinfo.js index 0f5cee59..77f504a0 100644 --- a/commands/search/botinfo.js +++ b/commands/search/botinfo.js @@ -46,10 +46,10 @@ class BotSearchCommand extends commando.Command { '[Here](' + response.invite_url + ')', true); message.channel.sendEmbed(embed).catch(console.error); }).catch(function (err) { - message.channel.sendMessage(":x: Error! Bot not Found!"); + message.channel.send(":x: Error! Bot not Found!"); }); } else { - message.channel.sendMessage(':x: Either too many or no bots, only mention one bot!'); + message.channel.send(':x: Either too many or no bots, only mention one bot!'); } } } diff --git a/commands/search/define.js b/commands/search/define.js index 457b838e..34625981 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -41,7 +41,7 @@ class DefineCommand extends commando.Command { .setDescription(response[0].text); message.channel.sendEmbed(embed).catch(console.error); }).catch(function (err) { - message.channel.sendMessage(":x: Error! Word not Found!"); + message.channel.send(":x: Error! Word not Found!"); }); } } diff --git a/commands/search/forecast.js b/commands/search/forecast.js index a20badee..f4b9b142 100644 --- a/commands/search/forecast.js +++ b/commands/search/forecast.js @@ -43,7 +43,7 @@ class ForecastCommand extends commando.Command { '**High:** ' + info.item.forecast[6].high + ', **Low:** ' + info.item.forecast[6].low + ', **Condition:** ' + info.item.forecast[6].text); message.channel.sendEmbed(embed).catch(console.error); }).catch(err => { - message.channel.sendMessage(":x: Error! Make sure you typed the location correctly!"); + message.channel.send(":x: Error! Make sure you typed the location correctly!"); }); } } diff --git a/commands/search/google.js b/commands/search/google.js index 44e3b86d..28615377 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -20,24 +20,24 @@ class GoogleCommand extends commando.Command { console.log("[Command] " + message.content); let searchQuery = message.content.split(" ").slice(1).join(" "); if(searchQuery === "") { - message.channel.sendMessage(':x: Error! I cannot search google for nothing!'); + message.channel.send(':x: Error! I cannot search google for nothing!'); } else { google.resultsPerPage = 2 google(searchQuery, function (err, res) { if (res === undefined) { - message.channel.sendMessage(':x: Error! Too many requests! Try again later! (Much later)'); + message.channel.send(':x: Error! Too many requests! Try again later! (Much later)'); } else { let link = res.links; if(link === undefined) { - message.channel.sendMessage(':x: Error! No Results Found!'); + message.channel.send(':x: Error! No Results Found!'); } else { if(link[0] === undefined) { - message.channel.sendMessage(':x: Error! No Results Found!'); + message.channel.send(':x: Error! No Results Found!'); } else { if(link[0].href === null) { - message.channel.sendMessage(':x: Error! No Results Found!'); + message.channel.send(':x: Error! No Results Found!'); } else { - message.channel.sendMessage(link[0].href).catch(error => message.channel.sendMessage(':x: An Error Occurred! Try again later!')); + message.channel.send(link[0].href).catch(error => message.channel.send(':x: An Error Occurred! Try again later!')); } } } diff --git a/commands/search/imdb.js b/commands/search/imdb.js index 2f157683..27a7a7b6 100644 --- a/commands/search/imdb.js +++ b/commands/search/imdb.js @@ -25,7 +25,7 @@ class IMDBCommand extends commando.Command { imdb.getReq({ name: querymovie }, (err, things) => { movie = things; if(movie === undefined) { - message.channel.sendMessage(":x: Error! Movie not found!"); + message.channel.send(":x: Error! Movie not found!"); } else { const embed = new Discord.RichEmbed() .setColor(0xDBA628) diff --git a/commands/search/neopet.js b/commands/search/neopet.js index 3b0626d3..6d7ceff1 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -20,9 +20,9 @@ class NeopetCommand extends commando.Command { console.log("[Command] " + message.content); let [petID] = message.content.split(" ").slice(1); if(petID === "getID") { - message.channel.sendMessage("To get your pet's ID, simply go to http://www.sunnyneo.com/petimagefinder.php and enter your pet's name. It's image should show up. Then, find the link below the pet's image, and copy it to your message!").then(message.channel.sendFile('./images/PetID.png').then(message.channel.sendMessage("It's recommended you keep this ID with you so you can easily share your pet's picture without having to repeat these steps."))); + message.channel.send("To get your pet's ID, simply go to http://www.sunnyneo.com/petimagefinder.php and enter your pet's name. It's image should show up. Then, find the link below the pet's image, and copy it to your message!").then(message.channel.sendFile('./images/PetID.png').then(message.channel.send("It's recommended you keep this ID with you so you can easily share your pet's picture without having to repeat these steps."))); } else { - message.channel.sendMessage("Result for: " + petID).then(message.channel.sendFile('http://pets.neopets.com/cp/' + petID + '/1/5.png').catch(error => message.channel.sendMessage(":x: Error! Pet ID Not Found!\n:notepad_spiral: Note: This command is subject to something of a ratelimit. Try again soon if you're sure your ID is valid."))); + message.channel.send("Result for: " + petID).then(message.channel.sendFile('http://pets.neopets.com/cp/' + petID + '/1/5.png').catch(error => message.channel.send(":x: Error! Pet ID Not Found!\n:notepad_spiral: Note: This command is subject to something of a ratelimit. Try again soon if you're sure your ID is valid."))); } } } diff --git a/commands/search/osu.js b/commands/search/osu.js index 29ac96a9..5bc7cc8c 100644 --- a/commands/search/osu.js +++ b/commands/search/osu.js @@ -34,7 +34,7 @@ class OsuCommand extends commando.Command { } request(options).then(function (response) { if(response[0] === undefined) { - message.channel.sendMessage(":x: Error! User not found!"); + message.channel.send(":x: Error! User not found!"); } else { const embed = new Discord.RichEmbed() .setColor(0xFF66AA) @@ -67,7 +67,7 @@ class OsuCommand extends commando.Command { message.channel.sendEmbed(embed).catch(console.error); } }).catch(function (err) { - message.channel.sendMessage(":x: Error! User not Found!"); + message.channel.send(":x: Error! User not Found!"); }); } } diff --git a/commands/search/pokedex.js b/commands/search/pokedex.js index 0fcbc49a..7a619f2f 100644 --- a/commands/search/pokedex.js +++ b/commands/search/pokedex.js @@ -35,7 +35,7 @@ class PokedexCommand extends commando.Command { pokedex.type[pokemon]); message.channel.sendEmbed(embed).catch(console.error); } else { - message.channel.sendMessage(":x: This Pokémon either doesn't exist, or isn't implemented yet."); + message.channel.send(":x: This Pokémon either doesn't exist, or isn't implemented yet."); } } } diff --git a/commands/search/urban.js b/commands/search/urban.js index 1b19346e..37201b9d 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -22,9 +22,9 @@ class UrbanDictionary extends commando.Command { let wordtodefine = message.content.split(" ").slice(1).join(" "); urban(wordtodefine).first(function(json) { if(json === undefined) { - message.channel.sendMessage(":x: Error! Word not found!"); + message.channel.send(":x: Error! Word not found!"); } else if(json.definition === '') { - message.channel.sendMessage(":x: Error! Word has no definition!"); + message.channel.send(":x: Error! Word has no definition!"); } else if(json.example !== '') { const embed = new Discord.RichEmbed() .setColor(0x32a8f0) diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index 758dd3fd..f93367e3 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -55,7 +55,7 @@ class WattpadCommand extends commando.Command { response.stories[0].commentCount, true); message.channel.sendEmbed(embed).catch(console.error); }).catch(function (err) { - message.channel.sendMessage(":x: Error! Book not Found!"); + message.channel.send(":x: Error! Book not Found!"); }); } } diff --git a/commands/search/weather.js b/commands/search/weather.js index 7660da41..4af0c948 100644 --- a/commands/search/weather.js +++ b/commands/search/weather.js @@ -53,7 +53,7 @@ class WeatherCommand extends commando.Command { info.wind.speed, true); message.channel.sendEmbed(embed).catch(console.error); }).catch(err => { - message.channel.sendMessage(":x: Error! Make sure you typed the location correctly!"); + message.channel.send(":x: Error! Make sure you typed the location correctly!"); }); } } diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 7ca1d2f1..07450d2a 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -31,7 +31,7 @@ class WikipediaCommand extends commando.Command { let name = response.query.pages[0].title; wikied = wikied.replace(")", "%29"); if(description === undefined) { - message.channel.sendMessage(":x: Error! Entry Not Found!"); + message.channel.send(":x: Error! Entry Not Found!"); } else { description = description.substr(0, 1900); description = description.split('\n').join("\n\n"); @@ -54,7 +54,7 @@ class WikipediaCommand extends commando.Command { } } }).catch(function (err) { - message.channel.sendMessage(":x: Error! Entry Not Found!"); + message.channel.send(":x: Error! Entry Not Found!"); }); } } diff --git a/commands/search/youtube.js b/commands/search/youtube.js index b6f1ae39..eceee413 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -37,7 +37,7 @@ class YouTubeCommand extends commando.Command { } request(options).then(function (response) { if(response.items[0].snippet === undefined) { - message.channel.sendMessage(':x: Error! No Video Found!'); + message.channel.send(':x: Error! No Video Found!'); } else { const embed = new Discord.RichEmbed() .setColor(0xDD2825) @@ -49,7 +49,7 @@ class YouTubeCommand extends commando.Command { message.channel.sendEmbed(embed).catch(console.error); } }).catch(function (err) { - message.channel.sendMessage(":x: Error! An error has occurred! Try again (if this continues to occur, the daily quota may have been reached)."); + message.channel.send(":x: Error! An error has occurred! Try again (if this continues to occur, the daily quota may have been reached)."); }); } } diff --git a/commands/search/yugioh.js b/commands/search/yugioh.js index 2036482f..80a013e2 100644 --- a/commands/search/yugioh.js +++ b/commands/search/yugioh.js @@ -57,7 +57,7 @@ class YuGiOhCommand extends commando.Command { message.channel.sendEmbed(embed).catch(console.error); } }).catch(function (err) { - message.channel.sendMessage(":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!"); + message.channel.send(":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!"); }); } } diff --git a/commands/textedit/binary.js b/commands/textedit/binary.js index 5ffae881..0ea9f376 100644 --- a/commands/textedit/binary.js +++ b/commands/textedit/binary.js @@ -19,7 +19,7 @@ class BinaryCommand extends commando.Command { } console.log("[Command] " + message.content); let turnToBinary = message.content.split(" ").slice(1).join(" "); - message.channel.sendMessage(stringToBinary(turnToBinary)).catch(error => message.channel.sendMessage(':x: Error! Translation is too long, or nothing was entered!')); + message.channel.send(stringToBinary(turnToBinary)).catch(error => message.channel.send(':x: Error! Translation is too long, or nothing was entered!')); } } diff --git a/commands/textedit/cowsay.js b/commands/textedit/cowsay.js index 48f42fb1..21df7899 100644 --- a/commands/textedit/cowsay.js +++ b/commands/textedit/cowsay.js @@ -19,7 +19,7 @@ class CowsayCommand extends commando.Command { } console.log("[Command] " + message.content); if(message.content.split(" ").slice(1).join(" ") === "") { - message.channel.sendMessage(":x: Error! You entered nothing!"); + message.channel.send(":x: Error! You entered nothing!"); } else { let turnToCowsay = message.content.split(" ").slice(1).join(" "); message.channel.sendCode(null, cowsay.say({ @@ -27,7 +27,7 @@ class CowsayCommand extends commando.Command { e : "oO", T : "U " })).catch(error => { - message.channel.sendMessage(':x: Error! Perhaps the content is too long?'); + message.channel.send(':x: Error! Perhaps the content is too long?'); }); } } diff --git a/commands/textedit/embed.js b/commands/textedit/embed.js index db3f0bbc..2960f1c0 100644 --- a/commands/textedit/embed.js +++ b/commands/textedit/embed.js @@ -21,7 +21,7 @@ class EmbedCommand extends commando.Command { console.log("[Command] " + message.content); let embedmessage = message.content.split(" ").slice(1).join(" "); if(embedmessage === "") { - message.channel.sendMessage(":x: Error! Nothing to embed!"); + message.channel.send(":x: Error! Nothing to embed!"); } else { const embed = new Discord.RichEmbed() .setAuthor(message.author.username, message.author.avatarURL) diff --git a/commands/textedit/pirate.js b/commands/textedit/pirate.js index c0fc70f1..4e2ca461 100644 --- a/commands/textedit/pirate.js +++ b/commands/textedit/pirate.js @@ -21,12 +21,12 @@ class PirateCommand extends commando.Command { let messagecontent = message.content.split(" ").slice(1).join(" "); let pirate = pirateSpeak.translate(messagecontent); if(messagecontent === "") { - message.channel.sendMessage(":x: Error! Nothing to translate!"); + message.channel.send(":x: Error! Nothing to translate!"); } else { if(pirate.length > 1950) { - message.channel.sendMessage(":x: Error! Your message is too long!"); + message.channel.send(":x: Error! Your message is too long!"); } else { - message.channel.sendMessage(pirate); + message.channel.send(pirate); } } } diff --git a/commands/textedit/reverse.js b/commands/textedit/reverse.js index 870120f1..cb8dc738 100644 --- a/commands/textedit/reverse.js +++ b/commands/textedit/reverse.js @@ -22,10 +22,10 @@ class ReverseCommand extends commando.Command { } let messagecontent = message.content.split(" ").slice(1).join(" "); if(messagecontent === "") { - message.channel.sendMessage(":x: Error! Nothing to reverse!"); + message.channel.send(":x: Error! Nothing to reverse!"); } else { let reversed = reverseString(messagecontent); - message.channel.sendMessage(reversed); + message.channel.send(reversed); } } } diff --git a/commands/textedit/romaji.js b/commands/textedit/romaji.js index f87ad2c7..5f031c88 100644 --- a/commands/textedit/romaji.js +++ b/commands/textedit/romaji.js @@ -22,12 +22,12 @@ class RomajiCommand extends commando.Command { if(hepburn.containsKana(romajify)) { let romajified = hepburn.fromKana(romajify); if(romajified.length > 1950) { - message.channel.sendMessage(":x: Error! Your message is too long!"); + message.channel.send(":x: Error! Your message is too long!"); } else { - message.channel.sendMessage(romajified); + message.channel.send(romajified); } } else { - message.channel.sendMessage(":x: Error! Message contains no Kana!\n:notepad_spiral: Note: You cannot use this command on Kanji!"); + message.channel.send(":x: Error! Message contains no Kana!\n:notepad_spiral: Note: You cannot use this command on Kanji!"); } } } diff --git a/commands/textedit/say.js b/commands/textedit/say.js index 79e6d0c7..00544ec6 100644 --- a/commands/textedit/say.js +++ b/commands/textedit/say.js @@ -19,9 +19,9 @@ class SayCommand extends commando.Command { console.log("[Command] " + message.content); let Copycat = message.content.split(" ").slice(1).join(" "); if(Copycat === "") { - message.channel.sendMessage(":x: Error! Nothing to say!"); + message.channel.send(":x: Error! Nothing to say!"); } else { - message.channel.sendMessage(Copycat); + message.channel.send(Copycat); if (message.channel.type === 'dm') return; message.delete(); } diff --git a/commands/textedit/shuffle.js b/commands/textedit/shuffle.js index dd73c4af..e9b5af77 100644 --- a/commands/textedit/shuffle.js +++ b/commands/textedit/shuffle.js @@ -30,9 +30,9 @@ class ShuffleCommand extends commando.Command { } let shuffled = message.content.split(" ").slice(1).join(" "); if(shuffled === '') { - message.channel.sendMessage(":x: Error! Nothing to shuffle!"); + message.channel.send(":x: Error! Nothing to shuffle!"); } else { - message.channel.sendMessage(shuffled.shuffle()); + message.channel.send(shuffled.shuffle()); } } } diff --git a/commands/textedit/translate.js b/commands/textedit/translate.js index 8dcde9dd..40b9d6ea 100644 --- a/commands/textedit/translate.js +++ b/commands/textedit/translate.js @@ -24,12 +24,12 @@ class TranslateCommand extends commando.Command { let [languageto] = message.content.toLowerCase().split(" ").slice(1); let messagecontent = message.content.split(" ").slice(2).join(" "); if(languageto === "list") { - message.channel.sendMessage("‘af': 'Afrikaans’\n’sq': 'Albanian'\n'ar': 'Arabic’\n’hy': 'Armenian’\n’az': 'Azerbaijani’\n’eu': 'Basque’\n’be': 'Belarusian’\n’bn': 'Bengali’\n’bs': 'Bosnian’\n’bg': 'Bulgarian’\n’ca': 'Catalan’\n’ceb': 'Cebuano’\n’ny': 'Chichewa’\n’zh-cn': 'Chinese Simplified’\n’zh-tw': 'Chinese Traditional’\n’co': 'Corsican’\n’hr': 'Croatian’\n’cs': 'Czech’\n’da': 'Danish’\n’nl': 'Dutch’\n’en': 'English’\n’eo': 'Esperanto’\n’et': 'Estonian’\n’tl': 'Filipino’\n’fi': 'Finnish’\n’fr': 'French’\n’fy': 'Frisian’\n’gl': 'Galician’\n’ka': 'Georgian’\n’de': 'German’\n’el': 'Greek’\n’gu': 'Gujarati’\n’ht': 'Haitian Creole’\n’ha': 'Hausa’\n’haw': 'Hawaiian’\n’iw': 'Hebrew’\n’hi': 'Hindi’\n’hmn': 'Hmong’\n’hu': 'Hungarian’\n’is': 'Icelandic’\n’ig': 'Igbo’\n’id': 'Indonesian’\n’ga': 'Irish’\n’it': 'Italian’\n’ja': 'Japanese’\n’jw': 'Javanese’\n’kn': 'Kannada’\n’kk': 'Kazakh’\n’km': 'Khmer’\n’ko': 'Korean’\n’ku': 'Kurdish (Kurmanji)’\n’ky': 'Kyrgyz’\n’lo': 'Lao’\n’la': 'Latin’\n’lv': 'Latvian’\n’lt': 'Lithuanian’\n’lb': 'Luxembourgish’\n’mk': 'Macedonian’\n’mg': 'Malagasy’\n’ms': 'Malay’\n’ml': 'Malayalam’\n’mt': 'Maltese’\n’mi': 'Maori’\n’mr': 'Marathi’\n’mn': 'Mongolian’\n’my': 'Myanmar (Burmese)’\n’ne': 'Nepali’\n’no': 'Norwegian’\n’ps': 'Pashto’\n’fa': 'Persian’\n’pl': 'Polish’\n’pt': 'Portuguese’\n’ma': 'Punjabi’\n’ro': 'Romanian’\n’ru': 'Russian’\nsm': 'Samoan’\n’gd': 'Scots Gaelic’\n’sr': 'Serbian’\n’st': 'Sesotho’\n’sn': 'Shona’\n’sd': 'Sindhi’\n’si': 'Sinhala’\n’sk': 'Slovak’\n’sl': 'Slovenian’\n’so': 'Somali’\n’es': 'Spanish’\n’su': 'Sudanese’\n’sw': 'Swahili’\n’sv': 'Swedish’\n’tg': 'Tajik’\n’ta': 'Tamil’\n’te': 'Telugu’\n’th': 'Thai’\n’tr': 'Turkish’\n’uk': 'Ukrainian’\n’ur': 'Urdu’\n’uz': 'Uzbek’\n’vi': 'Vietnamese’\n’cy': 'Welsh’\n’xh': 'Xhosa’\n’yi': 'Yiddish’\n’yo': 'Yoruba’\n’zu': 'Zulu'"); + message.channel.send("‘af': 'Afrikaans’\n’sq': 'Albanian'\n'ar': 'Arabic’\n’hy': 'Armenian’\n’az': 'Azerbaijani’\n’eu': 'Basque’\n’be': 'Belarusian’\n’bn': 'Bengali’\n’bs': 'Bosnian’\n’bg': 'Bulgarian’\n’ca': 'Catalan’\n’ceb': 'Cebuano’\n’ny': 'Chichewa’\n’zh-cn': 'Chinese Simplified’\n’zh-tw': 'Chinese Traditional’\n’co': 'Corsican’\n’hr': 'Croatian’\n’cs': 'Czech’\n’da': 'Danish’\n’nl': 'Dutch’\n’en': 'English’\n’eo': 'Esperanto’\n’et': 'Estonian’\n’tl': 'Filipino’\n’fi': 'Finnish’\n’fr': 'French’\n’fy': 'Frisian’\n’gl': 'Galician’\n’ka': 'Georgian’\n’de': 'German’\n’el': 'Greek’\n’gu': 'Gujarati’\n’ht': 'Haitian Creole’\n’ha': 'Hausa’\n’haw': 'Hawaiian’\n’iw': 'Hebrew’\n’hi': 'Hindi’\n’hmn': 'Hmong’\n’hu': 'Hungarian’\n’is': 'Icelandic’\n’ig': 'Igbo’\n’id': 'Indonesian’\n’ga': 'Irish’\n’it': 'Italian’\n’ja': 'Japanese’\n’jw': 'Javanese’\n’kn': 'Kannada’\n’kk': 'Kazakh’\n’km': 'Khmer’\n’ko': 'Korean’\n’ku': 'Kurdish (Kurmanji)’\n’ky': 'Kyrgyz’\n’lo': 'Lao’\n’la': 'Latin’\n’lv': 'Latvian’\n’lt': 'Lithuanian’\n’lb': 'Luxembourgish’\n’mk': 'Macedonian’\n’mg': 'Malagasy’\n’ms': 'Malay’\n’ml': 'Malayalam’\n’mt': 'Maltese’\n’mi': 'Maori’\n’mr': 'Marathi’\n’mn': 'Mongolian’\n’my': 'Myanmar (Burmese)’\n’ne': 'Nepali’\n’no': 'Norwegian’\n’ps': 'Pashto’\n’fa': 'Persian’\n’pl': 'Polish’\n’pt': 'Portuguese’\n’ma': 'Punjabi’\n’ro': 'Romanian’\n’ru': 'Russian’\nsm': 'Samoan’\n’gd': 'Scots Gaelic’\n’sr': 'Serbian’\n’st': 'Sesotho’\n’sn': 'Shona’\n’sd': 'Sindhi’\n’si': 'Sinhala’\n’sk': 'Slovak’\n’sl': 'Slovenian’\n’so': 'Somali’\n’es': 'Spanish’\n’su': 'Sudanese’\n’sw': 'Swahili’\n’sv': 'Swedish’\n’tg': 'Tajik’\n’ta': 'Tamil’\n’te': 'Telugu’\n’th': 'Thai’\n’tr': 'Turkish’\n’uk': 'Ukrainian’\n’ur': 'Urdu’\n’uz': 'Uzbek’\n’vi': 'Vietnamese’\n’cy': 'Welsh’\n’xh': 'Xhosa’\n’yi': 'Yiddish’\n’yo': 'Yoruba’\n’zu': 'Zulu'"); } else if(languages.entries[languageto]) { if(messagecontent === "") { - message.channel.sendMessage(":x: Error! Nothing to translate!"); + message.channel.send(":x: Error! Nothing to translate!"); } else if(messagecontent.length > 200) { - message.channel.sendMessage(":x: Error! Please keep translations below 200 characters!"); + message.channel.send(":x: Error! Please keep translations below 200 characters!"); } else { translate(messagecontent, {to: languageto}).then(res => { let languagefrom = res.from.language.iso.toLowerCase(); @@ -41,11 +41,11 @@ class TranslateCommand extends commando.Command { res.text); message.channel.sendEmbed(embed).catch(console.error); }).catch(err => { - message.channel.sendMessage(":x: Error!"); + message.channel.send(":x: Error!"); }); } } else { - message.channel.sendMessage(":x: Error! Language not found!"); + message.channel.send(":x: Error! Language not found!"); } } } diff --git a/commands/textedit/yoda.js b/commands/textedit/yoda.js index 51016c8a..b3dbbd0b 100644 --- a/commands/textedit/yoda.js +++ b/commands/textedit/yoda.js @@ -21,7 +21,7 @@ class YodaCommand extends commando.Command { console.log("[Command] " + message.content); let yodaspeak = message.content.split(" ").slice(1).join(" "); if(yodaspeak === "") { - message.channel.sendMessage(':x: Error! Nothing to translate!'); + message.channel.send(':x: Error! Nothing to translate!'); } else { const options = { method: 'GET', @@ -37,12 +37,12 @@ class YodaCommand extends commando.Command { } request(options).then(function (response) { if(response === undefined) { - message.channel.sendMessage(':x: Error! Something went wrong! Keep it simple to avoid this error.'); + message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.'); } else { - message.channel.sendMessage(response).catch(error => message.channel.sendMessage(':x: Error! Something went wrong! Keep it simple to avoid this error.')); + message.channel.send(response).catch(error => message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.')); } }).catch(function (err) { - message.channel.sendMessage(":x: Error! Unknown Error. Try again later!"); + message.channel.send(":x: Error! Unknown Error. Try again later!"); }); } } diff --git a/commands/textedit/zalgo.js b/commands/textedit/zalgo.js index 23210aff..ba2152d8 100644 --- a/commands/textedit/zalgo.js +++ b/commands/textedit/zalgo.js @@ -20,11 +20,11 @@ class ZalgoCommand extends commando.Command { console.log("[Command] " + message.content); let zalgoified = zalgo(message.content.split(" ").slice(1).join(" ")); if(zalgoified === '') { - message.channel.sendMessage(":x: Error! Nothing to zalgoify!"); + message.channel.send(":x: Error! Nothing to zalgoify!"); } else if(zalgoified.length > 1950) { - message.channel.sendMessage(":x: Error! Your message is too long!"); + message.channel.send(":x: Error! Your message is too long!"); } else { - message.channel.sendMessage(zalgoified); + message.channel.send(zalgoified); } } } diff --git a/commands/userinfo/avatar.js b/commands/userinfo/avatar.js index 1836f0ac..d3ea276e 100644 --- a/commands/userinfo/avatar.js +++ b/commands/userinfo/avatar.js @@ -18,12 +18,12 @@ class AvatarCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if(message.mentions.users.first().avatarURL === null) { - message.channel.sendMessage(":x: This person has no avatar!"); + message.channel.send(":x: This person has no avatar!"); } else { - message.channel.sendMessage(message.mentions.users.first().avatarURL); + message.channel.send(message.mentions.users.first().avatarURL); } } } diff --git a/commands/userinfo/userinfo.js b/commands/userinfo/userinfo.js index d71489d0..e1b10c1e 100644 --- a/commands/userinfo/userinfo.js +++ b/commands/userinfo/userinfo.js @@ -20,7 +20,7 @@ class UserInfoCommand extends commando.Command { } console.log("[Command] " + message.content); if (message.channel.type === 'dm') { - message.channel.sendMessage(":x: This is a DM!"); + message.channel.send(":x: This is a DM!"); } else { let member = message.guild.member(message.mentions.users.first()); let stat; @@ -54,7 +54,7 @@ class UserInfoCommand extends commando.Command { break; } if (message.mentions.users.size !== 1) { - message.channel.sendMessage(':x: Either too many or no members, only mention one person!'); + message.channel.send(':x: Either too many or no members, only mention one person!'); } else { if (message.mentions.users.first().presence.game === null) { const embed = new Discord.RichEmbed() diff --git a/index.js b/index.js index 7087d848..becdf4b4 100644 --- a/index.js +++ b/index.js @@ -41,18 +41,18 @@ client.on('message', (message) => { if(message.author.id !== config.owner) return; console.log("[Command] " + message.content); console.log(client.guilds.array().length + " Servers: " + client.guilds.map(g => g.name + " (" + g.id + ")").join(", ")); - message.channel.sendMessage("Sent the information to the console!"); + message.channel.send("Sent the information to the console!"); } if(message.content.includes("(╯°□°)╯︵ ┻━┻")) { if(message.channel.type !== 'dm') { if(message.guild.id === "110373943822540800") return; } console.log("[Command] " + message.content); - message.channel.sendMessage("Calm down! ┬─┬ ノ( ゜-゜ノ)"); + message.channel.send("Calm down! ┬─┬ ノ( ゜-゜ノ)"); } if(message.content.includes(":Swagolor:")) { if(message.guild.id !== config.server) return; - message.channel.sendMessage(message.guild.emojis.get('254827709459333120').toString()); + message.channel.send(message.guild.emojis.get('254827709459333120').toString()); } if (message.content.startsWith(';rinsay')) { if (message.author.id !== config.owner) return; @@ -84,7 +84,7 @@ client.on('message', (message) => { message.channel.stopTyping(); }); } else { - message.channel.sendMessage(":x: Error! You are either not verified for Cleverbot, or banned from it. Please check #rules for a link to the forum to sign-up for Cleverbot."); + message.channel.send(":x: Error! You are either not verified for Cleverbot, or banned from it. Please check #rules for a link to the forum to sign-up for Cleverbot."); } } }