mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Drop Reply in most cases
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user