Files
xiao/commands/textedit/say.js
T
Daniel Odendahl Jr 29005a8945 Oops
2017-04-26 17:37:53 +00:00

32 lines
938 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class SayCommand extends Command {
constructor(client) {
super(client, {
name: 'say',
aliases: [
'copy',
'repeat',
'echo'
],
group: 'textedit',
memberName: 'say',
description: 'Make XiaoBot say what you wish.',
guildOnly: true,
args: [{
key: 'text',
prompt: 'What text would you like XiaoBot to say?',
type: 'string'
}]
});
}
run(message, args) {
if (!message.channel.permissionsFor(this.client.user).has('MANAGE_MESSAGES'))
return message.say('This Command requires the `Manage Messages` Permission.');
const { text } = args;
message.delete();
return message.say(`\u180E${text}`);
}
};