mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Another Rewrite Type Thing
This commit is contained in:
@@ -31,9 +31,8 @@ module.exports = class PirateCommand extends Command {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
const turnToPirate = args.text;
|
||||
const pirate = pirateSpeak.translate(turnToPirate);
|
||||
if (pirate.length > 1950) return message.say(':x: Error! Your message is too long!');
|
||||
const text = args.text;
|
||||
const pirate = pirateSpeak.translate(text);
|
||||
return message.say(`\u180E${pirate}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user