mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
The Power of const
This commit is contained in:
@@ -24,8 +24,8 @@ module.exports = class RateWaifuCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let waifuToRate = args.waifu;
|
||||
let rating = Math.floor(Math.random() * 10) + 1;
|
||||
const waifuToRate = args.waifu;
|
||||
const rating = Math.floor(Math.random() * 10) + 1;
|
||||
return message.say(`I'd give ${waifuToRate} a ${rating}/10!`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user