diff --git a/bot.js b/bot.js index 4911143..0641227 100644 --- a/bot.js +++ b/bot.js @@ -43,7 +43,8 @@ client.misc = { charsNum: 0 }, loggers: {}, - rl: readline.createInterface({input: process.stdin, output: process.stdout}) + rl: readline.createInterface({input: process.stdin, output: process.stdout}), + cooldown: new Discord.Collection() }; //const config = require('./config.js'); diff --git a/commands/utility/remind.js b/commands/utility/remind.js index ede663b..04a7b14 100644 --- a/commands/utility/remind.js +++ b/commands/utility/remind.js @@ -11,12 +11,14 @@ module.exports = { syntax: '`remind `', extra: null }, + cooldown: {time: 5000, silent: false, message: "Slow down pal, I don't exactly have a world-star memory. Cool down on the reminders! (This command has a cooldown of 5s and you exceeded it)"}, help: new Discord.MessageEmbed() .setTitle("Help -> Reminders") .setDescription("Have me remind you about something later on.") .addField("Syntax", "`remind `"), async execute(message, msg, args, cmd, prefix, mention, client) { if (!args.length) {return message.channel.send(`Syntax: \`${prefix}remind