summaryrefslogtreecommitdiff
path: root/src/commands/fun/clapify.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/clapify.ts')
-rw-r--r--src/commands/fun/clapify.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/commands/fun/clapify.ts b/src/commands/fun/clapify.ts
new file mode 100644
index 0000000..f05c768
--- /dev/null
+++ b/src/commands/fun/clapify.ts
@@ -0,0 +1,31 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+
+module.exports = class ClapFun extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'clapify',
+ aliases: ['clap', 'clappify'],
+ group: 'fun',
+ memberName: 'clapify',
+ description: 'Allows you to clapify anything.',
+ args: [
+ {
+ key: 'say',
+ prompt: 'What would you like to clapify?',
+ type: 'string'
+ }
+ ],
+ examples: ['uwu!clapify please clap this lol'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
+ });
+ }
+ run(msg: CommandoMessage, { say }) {
+ msg.say(say.split(' ').join('👏'))
+ msg.delete()
+ }
+}; \ No newline at end of file