From 9aa116a6793eec3b890eb47276c81c82a56ca8b8 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 20 Dec 2018 03:08:43 +0100 Subject: [PATCH] Reserved command --- commands/reserved/BSEspam.js | 40 ++++++++++++++++++++++++++++++++++++ index.js | 1 + 2 files changed, 41 insertions(+) create mode 100644 commands/reserved/BSEspam.js diff --git a/commands/reserved/BSEspam.js b/commands/reserved/BSEspam.js new file mode 100644 index 0000000..cf849fb --- /dev/null +++ b/commands/reserved/BSEspam.js @@ -0,0 +1,40 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class BSEspamCommand extends Command { + constructor(client) { + super(client, { + name: 'bsespam', + group: 'reserved', + memberName: 'bsespam', + description: `FOR Big Snow Energy only\nSpam the text you send`, + throttling: { + usages: 2, + duration: 3600, + }, + args: [ + { + key: 'number', + prompt: 'How many times do you want to repeat it?', + type: 'integer', + validate: number => number < 11, + default: '1' + }, + { + key: 'text', + prompt: 'What do you want me to say', + type: 'string', + } + ] + }); + } + + async run(message, { number, text }) { + if (message.author.id != "428387534842626048") + return message.say('Command only available to **Big Snow Energy**') + + for(let i = 0; i < number; i++) { + message.say(text); + } + message.say('Finished :)'); + } +}; \ No newline at end of file diff --git a/index.js b/index.js index 7025fa1..3e3bed6 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,7 @@ client.registry ['fun', 'Fun'], ['images', 'Images'], ['utility', 'Utility'], + ['reserved', 'Reserved'], ['admin', 'Admins'], ['owner', 'Owner'],