mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
The Power of const
This commit is contained in:
@@ -32,8 +32,8 @@ module.exports = class PirateCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let turnToPirate = args.text;
|
||||
let pirate = pirateSpeak.translate(turnToPirate);
|
||||
const turnToPirate = args.text;
|
||||
const pirate = pirateSpeak.translate(turnToPirate);
|
||||
if (pirate.length > 1950) return message.say(":x: Error! Your message is too long!");
|
||||
return message.say(pirate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user