mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Drop Reply in most cases
This commit is contained in:
@@ -20,16 +20,16 @@ class YearsCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.mentions.users.size !== 1) {
|
||||
message.reply(':x: Either too many or no members, only mention one person!');
|
||||
message.channel.sendMessage(':x: Either too many or no members, only mention one person!');
|
||||
} else {
|
||||
if(message.mentions.users.first().avatarURL === null) {
|
||||
message.reply(":x: This person has no avatar!");
|
||||
message.channel.sendMessage(":x: This person has no avatar!");
|
||||
} else {
|
||||
let avatarurl = message.mentions.users.first().avatarURL;
|
||||
avatarurl = avatarurl.replace(".jpg", ".png");
|
||||
avatarurl = avatarurl.replace(".gif", ".png");
|
||||
let username = message.content.split(" ").slice(1).join(" ");
|
||||
message.channel.sendMessage("It's been 3000 years " + username + "...");
|
||||
message.channel.sendMessage("It's been 3000 years " + username.username + "...");
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarurl));
|
||||
images.push(Jimp.read("./images/3000years.png"));
|
||||
|
||||
@@ -20,16 +20,16 @@ class BeautifulCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.mentions.users.size !== 1) {
|
||||
message.reply(':x: Either too many or no members, only mention one person!');
|
||||
message.channel.sendMessage(':x: Either too many or no members, only mention one person!');
|
||||
} else {
|
||||
if(message.mentions.users.first().avatarURL === null) {
|
||||
message.reply(":x: This person has no avatar!");
|
||||
message.channel.sendMessage(":x: This person has no avatar!");
|
||||
} else {
|
||||
let avatarurl = message.mentions.users.first().avatarURL;
|
||||
avatarurl = avatarurl.replace(".jpg", ".png");
|
||||
avatarurl = avatarurl.replace(".gif", ".png");
|
||||
let username = message.content.split(" ").slice(1).join(" ");
|
||||
message.channel.sendMessage('This? ' + username + " is beautiful.");
|
||||
message.channel.sendMessage('This? ' + username.username + " is beautiful.");
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarurl));
|
||||
images.push(Jimp.read("./images/beautiful.jpg"));
|
||||
|
||||
@@ -20,16 +20,16 @@ class BobRossCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.mentions.users.size !== 1) {
|
||||
message.reply(':x: Either too many or no members, only mention one person!');
|
||||
message.channel.sendMessage(':x: Either too many or no members, only mention one person!');
|
||||
} else {
|
||||
if(message.mentions.users.first().avatarURL === null) {
|
||||
message.reply(":x: This person has no avatar!");
|
||||
message.channel.sendMessage(":x: This person has no avatar!");
|
||||
} else {
|
||||
let avatarurl = message.mentions.users.first().avatarURL;
|
||||
avatarurl = avatarurl.replace(".jpg", ".png");
|
||||
avatarurl = avatarurl.replace(".gif", ".png");
|
||||
let username = message.content.split(" ").slice(1).join(" ");
|
||||
message.channel.sendMessage(username + "...");
|
||||
message.channel.sendMessage(username.username + "...");
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarurl));
|
||||
images.push(Jimp.read("./images/BobRoss.png"));
|
||||
|
||||
@@ -20,16 +20,16 @@ class RIPCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.mentions.users.size !== 1) {
|
||||
message.reply(':x: Either too many or no members, only mention one person!');
|
||||
message.channel.sendMessage(':x: Either too many or no members, only mention one person!');
|
||||
} else {
|
||||
if(message.mentions.users.first().avatarURL === null) {
|
||||
message.reply(":x: This person has no avatar!");
|
||||
message.channel.sendMessage(":x: This person has no avatar!");
|
||||
} else {
|
||||
let avatarurl = message.mentions.users.first().avatarURL;
|
||||
avatarurl = avatarurl.replace(".jpg", ".png");
|
||||
avatarurl = avatarurl.replace(".gif", ".png");
|
||||
let username = message.content.split(" ").slice(1).join(" ");
|
||||
message.channel.sendMessage('RIP ' + username + "...");
|
||||
message.channel.sendMessage('RIP ' + username.username + "...");
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarurl));
|
||||
images.push(Jimp.read("./images/gravestone.jpg"));
|
||||
|
||||
@@ -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.reply("Sorry, you've been banned from using this command.");
|
||||
message.channel.sendMessage("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.reply('Message Sent! Thanks for your support!');
|
||||
message.channel.sendMessage('Message Sent! Thanks for your support!');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.reply("\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.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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class GuildInfoCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.channel.type === 'dm') {
|
||||
message.reply(":x: This is a DM!");
|
||||
message.channel.sendMessage(":x: This is a DM!");
|
||||
} else {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setColor(0x00AE86)
|
||||
|
||||
@@ -22,13 +22,13 @@ class BanCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.channel.type === 'dm') {
|
||||
message.reply(":x: This is a DM!");
|
||||
message.channel.sendMessage(":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.reply(":x: Either too many or no members, only mention one person!");
|
||||
message.channel.sendMessage(":x: Either too many or no members, only mention one person!");
|
||||
} else {
|
||||
if(message.member.hasPermission('BAN_MEMBERS')) {
|
||||
if(member.bannable === true) {
|
||||
@@ -44,10 +44,10 @@ class BanCommand extends commando.Command {
|
||||
'**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.reply("**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.sendMessage("**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.reply(":x: This member cannot be banned!");
|
||||
message.channel.sendMessage(":x: This member cannot be banned!");
|
||||
}
|
||||
} else {
|
||||
message.channel.sendMessage(":x: You don't have the Ban Members Permission!");
|
||||
|
||||
@@ -22,13 +22,13 @@ class KickCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.channel.type === 'dm') {
|
||||
message.reply(":x: This is a DM!");
|
||||
message.channel.sendMessage(":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.reply(":x: Either too many or no members, only mention one person!");
|
||||
message.channel.sendMessage(":x: Either too many or no members, only mention one person!");
|
||||
} else {
|
||||
if(message.member.hasPermission('KICK_MEMBERS')) {
|
||||
if(member.kickable === true) {
|
||||
@@ -44,13 +44,13 @@ class KickCommand extends commando.Command {
|
||||
'**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.reply("**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.sendMessage("**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.reply(":x: This member cannot be kicked!");
|
||||
message.channel.sendMessage(":x: This member cannot be kicked!");
|
||||
}
|
||||
} else {
|
||||
message.reply(":x: You don't have the Kick Members Permission!");
|
||||
message.channel.sendMessage(":x: You don't have the Kick Members Permission!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,12 +22,12 @@ class WarnCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.channel.type === 'dm') {
|
||||
message.reply(":x: This is a DM!");
|
||||
message.channel.sendMessage(":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.reply(":x: Either too many or no members, only mention one person!");
|
||||
message.channel.sendMessage(":x: Either too many or no members, only mention one person!");
|
||||
} else {
|
||||
if(message.member.hasPermission('KICK_MEMBERS')) {
|
||||
message.channel.sendMessage(":ok_hand:");
|
||||
@@ -41,7 +41,7 @@ class WarnCommand extends commando.Command {
|
||||
'**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.reply("**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.sendMessage("**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!");
|
||||
|
||||
@@ -34,7 +34,7 @@ class PokedexCommand extends commando.Command {
|
||||
.addField('Type',
|
||||
pokedex.type[pokemon]);
|
||||
message.channel.sendEmbed(embed).catch(console.error);
|
||||
} else {message.reply(":x: This Pokémon either doesn't exist, or isn't implemented yet.");}
|
||||
} else {message.channel.sendMessage(":x: This Pokémon either doesn't exist, or isn't implemented yet.");}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.reply('Can YOU not?');
|
||||
message.channel.sendMessage('Can YOU not?');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.reply('Ooh, what a pretty flower. What, I may have it? Thanks! I like flowers, yes? ♪');
|
||||
message.channel.sendMessage('Ooh, what a pretty flower. What, I may have it? Thanks! I like flowers, yes? ♪');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.reply("Wow! You actually won! Great job!");
|
||||
message.channel.sendMessage("Wow " + message.author.username + "! You actually won! Great job!");
|
||||
} else {
|
||||
message.reply("Nope, sorry, you lost. RIP you.");
|
||||
message.channel.sendMessage("Nope, sorry, " + message.author.username + ", you lost. RIP you.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.reply('*slow clap*');
|
||||
message.channel.sendMessage('*slow clap*');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.reply("Spam!");
|
||||
message.channel.sendMessage("Spam!");
|
||||
message.channel.sendFile("./images/Spam.jpg");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.reply(":x: Error! Word not found!");
|
||||
message.channel.sendMessage(":x: Error! Word not found!");
|
||||
} else if(json.definition === '') {
|
||||
message.reply(":x: Error! Word has no definition!");
|
||||
message.channel.sendMessage(":x: Error! Word has no definition!");
|
||||
} else if(json.example === '') {
|
||||
message.channel.sendMessage("**Definition:**\n" + json.definition, {split:{maxLength:1900}});
|
||||
} else {
|
||||
|
||||
@@ -23,7 +23,7 @@ class MagicBall extends commando.Command {
|
||||
if(question === "") {
|
||||
question = "Not Specified."
|
||||
}
|
||||
message.channel.sendMessage(username + " asked: " + question + "\n:8ball: " + coin + " :8ball:");
|
||||
message.channel.sendMessage(username.username + " asked: " + question + "\n:8ball: " + coin + " :8ball:");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class RandomCat extends commando.Command {
|
||||
}
|
||||
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"][Math.floor(Math.random() * 20)];
|
||||
message.reply("Meow!");
|
||||
message.channel.sendMessage("Meow!");
|
||||
message.channel.sendFile("./images/Cat" + cat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,9 +21,9 @@ class ChooseCommand extends commando.Command {
|
||||
let choice2 = message.content.split("|").slice(1).join(" ");
|
||||
let choice1 = " " + message.content.replace(choice2, "").split(" ").slice(1).join(" ");
|
||||
let coin = [choice1, choice2][Math.floor(Math.random() * 2)];
|
||||
message.reply("I choose" + coin.replace("|", ""));
|
||||
message.channel.sendMessage("I choose" + coin.replace("|", ""));
|
||||
} else {
|
||||
message.reply(":x: Split your two choices with a ' | '!");
|
||||
message.channel.sendMessage(":x: Split your two choices with a ' | '!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class CoinFlipCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
let coin = ['Heads', 'Tails'][Math.floor(Math.random() * 2)];
|
||||
message.reply("It landed on " + coin);
|
||||
message.channel.sendMessage("It landed on " + coin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@ class FishyCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
let coin = [':fish:', ':tropical_fish:', ':blowfish:'][Math.floor(Math.random() * 3)];
|
||||
message.reply("You caught a: " + coin);
|
||||
message.channel.sendMessage("You caught a: " + coin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ class RandomNameGen extends commando.Command {
|
||||
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"][Math.floor(Math.random() * 71)];
|
||||
let randomfirstboth = [randomfirstmale, randomfirstfemale][Math.floor(Math.random() * 2)];
|
||||
if(message.content.toLowerCase().split(" ").slice(1).includes("male")) {
|
||||
message.reply(randomfirstmale + " " + randomlast);
|
||||
message.channel.sendMessage(randomfirstmale + " " + randomlast);
|
||||
} else if(message.content.toLowerCase().split(" ").slice(1).includes("female")) {
|
||||
message.reply(randomfirstfemale + " " + randomlast);
|
||||
message.channel.sendMessage(randomfirstfemale + " " + randomlast);
|
||||
} else {
|
||||
message.reply(randomfirstboth + " " + randomlast);
|
||||
message.channel.sendMessage(randomfirstboth + " " + randomlast);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ class PotatoCommand extends commando.Command {
|
||||
}
|
||||
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"][Math.floor(Math.random() * 9)];
|
||||
message.reply("Potatoes!");
|
||||
message.channel.sendMessage("Potatoes!");
|
||||
message.channel.sendFile("./images/Potato" + potato);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class RandomPun extends commando.Command {
|
||||
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"][Math.floor(Math.random() * 53)];
|
||||
let punresponse = ["These are just punderful.", "Have a pun day!", "Puns aren't that punny, okay?", "But it's not Punday!"][Math.floor(Math.random() * 4)];
|
||||
message.reply(punresponse);
|
||||
message.channel.sendMessage(punresponse);
|
||||
message.channel.sendFile("./images/" + pun);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class QuantumCoin extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
let qcoin = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null'][Math.floor(Math.random() * 5)];
|
||||
message.reply("It landed " + qcoin);
|
||||
message.channel.sendMessage("It landed " + qcoin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.reply("I'd give " + username + " a " + percentage + "/10!");
|
||||
message.channel.sendMessage("I'd give " + username + " a " + percentage + "/10!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,39 +20,39 @@ class RockPaperScissors extends commando.Command {
|
||||
let [rps] = message.content.toLowerCase().split(" ").slice(1);
|
||||
let response = ['Paper', 'Rock', 'Scissors'][Math.floor(Math.random() * 3)];
|
||||
if(rps === undefined) {
|
||||
message.reply(":x: Error! Your message contains nothing!");
|
||||
message.channel.sendMessage(":x: Error! Your message contains nothing!");
|
||||
} else if(rps.includes("rock")) {
|
||||
if(response === "Rock") {
|
||||
message.reply("Rock! Aw, it's a tie!");
|
||||
message.channel.sendMessage("Rock! Aw, it's a tie!");
|
||||
}
|
||||
if(response === "Paper") {
|
||||
message.reply("Paper! Yes! I win!");
|
||||
message.channel.sendMessage("Paper! Yes! I win!");
|
||||
}
|
||||
if(response === "Scissors") {
|
||||
message.reply("Scissors! Aw... I lose...");
|
||||
message.channel.sendMessage("Scissors! Aw... I lose...");
|
||||
}
|
||||
} else if(rps.includes("paper")) {
|
||||
if(response === "Rock") {
|
||||
message.reply("Rock! Aw... I lose...");
|
||||
message.channel.sendMessage("Rock! Aw... I lose...");
|
||||
}
|
||||
if(response === "Paper") {
|
||||
message.reply("Paper! Aw, it's a tie!");
|
||||
message.channel.sendMessage("Paper! Aw, it's a tie!");
|
||||
}
|
||||
if(response === "Scissors") {
|
||||
message.reply("Scissors! Yes! I win!");
|
||||
message.channel.sendMessage("Scissors! Yes! I win!");
|
||||
}
|
||||
} else if(rps.includes("scissors")) {
|
||||
if(response === "Rock") {
|
||||
message.reply("Rock! Yes! I win!");
|
||||
message.channel.sendMessage("Rock! Yes! I win!");
|
||||
}
|
||||
if(response === "Paper") {
|
||||
message.reply("Paper! Aw... I lose...");
|
||||
message.channel.sendMessage("Paper! Aw... I lose...");
|
||||
}
|
||||
if(response === "Scissors") {
|
||||
message.reply("Scissors! Aw, it's a tie!");
|
||||
message.channel.sendMessage("Scissors! Aw, it's a tie!");
|
||||
}
|
||||
} else {
|
||||
message.reply(":x: Error! Your choice is not Rock, Paper, or Scissors!");
|
||||
message.channel.sendMessage(":x: Error! Your choice is not Rock, Paper, or Scissors!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.reply("You rolled a " + roll)
|
||||
message.channel.sendMessage("You rolled a " + roll)
|
||||
} else if(value.match("^[0-9]+$")) {
|
||||
let roll = Math.floor(Math.random() * value) + 1;
|
||||
message.reply("You rolled a " + roll);
|
||||
message.channel.sendMessage("You rolled a " + roll);
|
||||
} else {
|
||||
message.reply(":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.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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class FishyCommand extends commando.Command {
|
||||
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
message.reply("I choose " + message.guild.members.random() + "!");
|
||||
message.channel.sendMessage("I choose " + message.guild.members.random() + "!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.reply("I'd give " + ship + " a " + percentage + "%!");
|
||||
message.channel.sendMessage("I'd give " + ship + " a " + percentage + "%!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
][Math.floor(Math.random() * 42)];
|
||||
message.reply(coin);
|
||||
message.channel.sendMessage(coin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class RandomXiaoPai extends commando.Command {
|
||||
}
|
||||
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"][Math.floor(Math.random() * 21)];
|
||||
message.reply("It's me, yes?");
|
||||
message.channel.sendMessage("It's me, yes?");
|
||||
message.channel.sendFile("./images/Xiao" + XiaoPai);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.reply(":x: Error! Nothing to embed!");
|
||||
message.channel.sendMessage(":x: Error! Nothing to embed!");
|
||||
} else {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setAuthor(message.author.username, message.author.avatarURL)
|
||||
|
||||
@@ -21,7 +21,7 @@ class PirateCommand extends commando.Command {
|
||||
let messagecontent = message.content.split(" ").slice(1).join(" ");
|
||||
let pirate = pirateSpeak.translate(messagecontent);
|
||||
if(messagecontent === "") {
|
||||
message.reply(":x: Error! Nothing to translate!");
|
||||
message.channel.sendMessage(":x: Error! Nothing to translate!");
|
||||
} else {
|
||||
message.channel.sendMessage(pirate);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class ReverseCommand extends commando.Command {
|
||||
}
|
||||
let messagecontent = message.content.split(" ").slice(1).join(" ");
|
||||
if(messagecontent === "") {
|
||||
message.reply(":x: Error! Nothing to reverse!");
|
||||
message.channel.sendMessage(":x: Error! Nothing to reverse!");
|
||||
} else {
|
||||
let reversed = reverseString(messagecontent);
|
||||
message.channel.sendMessage(reversed);
|
||||
|
||||
@@ -19,7 +19,7 @@ class SayCommand extends commando.Command {
|
||||
console.log("[Command] " + message.content);
|
||||
let Copycat = message.content.split(" ").slice(1).join(" ");
|
||||
if(Copycat === "") {
|
||||
message.reply(":x: Error! Nothing to say!");
|
||||
message.channel.sendMessage(":x: Error! Nothing to say!");
|
||||
} else {
|
||||
message.channel.sendMessage(Copycat);
|
||||
if (message.channel.type === 'dm') return;
|
||||
|
||||
@@ -27,7 +27,7 @@ class TranslateCommand extends commando.Command {
|
||||
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'");
|
||||
} else if(languages.entries[languageto]) {
|
||||
if(messagecontent === "") {
|
||||
message.reply(":x: Error! Nothing to translate!");
|
||||
message.channel.sendMessage(":x: Error! Nothing to translate!");
|
||||
} else {
|
||||
translate(messagecontent, {to: languageto}).then(res => {
|
||||
let languagefrom = res.from.language.iso;
|
||||
@@ -43,7 +43,7 @@ class TranslateCommand extends commando.Command {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
message.reply(":x: Error! Language not found!");
|
||||
message.channel.sendMessage(":x: Error! Language not found!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@ class AvatarCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.mentions.users.size !== 1) {
|
||||
message.reply(':x: Either too many or no members, only mention one person!');
|
||||
message.channel.sendMessage(':x: Either too many or no members, only mention one person!');
|
||||
} else {
|
||||
if(message.mentions.users.first().avatarURL === null) {
|
||||
message.reply(":x: This person has no avatar!");
|
||||
message.channel.sendMessage(":x: This person has no avatar!");
|
||||
} else {
|
||||
message.reply(message.mentions.users.first().avatarURL);
|
||||
message.channel.sendMessage(message.mentions.users.first().avatarURL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class UserInfoCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.channel.type === 'dm') {
|
||||
message.reply(":x: This is a DM!");
|
||||
message.channel.sendMessage(":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.reply(':x: Either too many or no members, only mention one person!');
|
||||
message.channel.sendMessage(':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()
|
||||
|
||||
@@ -36,19 +36,19 @@ 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.reply("Sent the information to the console!");
|
||||
message.channel.sendMessage("Sent the information to the console!");
|
||||
}
|
||||
if(message.content.startsWith(';leave')) {
|
||||
if(message.author.id !== config.owner) return;
|
||||
console.log("[Command] " + message.content);
|
||||
message.reply("Reminder: To leave a server, eval `this.client.guilds.get(<ID>).leave();`");
|
||||
message.channel.sendMessage("Reminder: To leave a server, eval `this.client.guilds.get(<ID>).leave();`");
|
||||
}
|
||||
if(message.content.includes("(╯°□°)╯︵ ┻━┻")) {
|
||||
if(message.channel.type !== 'dm') {
|
||||
if(message.guild.id === "110373943822540800") return;
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
message.reply("Calm down! ┬─┬ ノ( ゜-゜ノ)");
|
||||
message.channel.sendMessage("Calm down! ┬─┬ ノ( ゜-゜ノ)");
|
||||
}
|
||||
if(message.content.includes(":Swagolor:")) {
|
||||
if(message.guild.id !== "252317073814978561") return;
|
||||
|
||||
Reference in New Issue
Block a user