mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Replace all sendMessage calls with send
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user