Replace all sendMessage calls with send

This commit is contained in:
dragonfire535
2017-03-15 20:59:46 -04:00
parent 7faa8c3190
commit dfc9583d99
87 changed files with 174 additions and 174 deletions
+11 -11
View File
@@ -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!");
}
}
}