mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
The Power of const
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = class RockPaperScissors extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let rps = args.choice.toLowerCase();
|
||||
const rps = args.choice.toLowerCase();
|
||||
let response = ['Paper', 'Rock', 'Scissors'];
|
||||
response = response[Math.floor(Math.random() * response.length)];
|
||||
if (rps === "rock") {
|
||||
|
||||
Reference in New Issue
Block a user