mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Drop Reply in most cases
This commit is contained in:
@@ -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 ' | '!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user