diff options
Diffstat (limited to 'commands/fun/say.js')
| -rw-r--r-- | commands/fun/say.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/commands/fun/say.js b/commands/fun/say.js new file mode 100644 index 0000000..cb344c9 --- /dev/null +++ b/commands/fun/say.js @@ -0,0 +1,26 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class SayFun extends Command { + constructor(client) { + super(client, { + name: 'say', + group: 'fun', + memberName: 'say', + description: 'speak as the bot', + guildOnly: true, + args: [ + { + key: 'say', + prompt: 'u cant send an empty msg lol', + type: 'string' + } + ] + }); + } + run(msg, { say }) { + if (msg.member.hasPermission('KICK_MEMBERS')) { + msg.channel.send(say); + msg.delete(); + } + } +};
\ No newline at end of file |