diff options
| author | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
| commit | 9dff52f7d047c905326bc2f476ede5463e00f2a0 (patch) | |
| tree | 1fec8563b3b72fde9b2ab7ad9e56a97398798685 /src/commands/fun/say.js | |
| parent | typescript (diff) | |
| download | s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.tar.xz s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.zip | |
typescript final
Diffstat (limited to 'src/commands/fun/say.js')
| -rw-r--r-- | src/commands/fun/say.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/commands/fun/say.js b/src/commands/fun/say.js new file mode 100644 index 0000000..07c6dba --- /dev/null +++ b/src/commands/fun/say.js @@ -0,0 +1,29 @@ +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' + } + ], + examples: ['s5n!say hi'] + }); + } + run(msg, { say }) { + if (msg.member.hasPermission('KICK_MEMBERS')) { + msg.channel.send(say); + msg.delete(); + } else { + msg.reply('insufficent perms homie ' + emoji.random()); + } + } +};
\ No newline at end of file |