diff options
| author | Alee <alee14498@gmail.com> | 2018-04-16 09:18:53 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-16 09:18:53 -0400 |
| commit | 33cd7187620ec6f79af1d426c9637c104bd73dc5 (patch) | |
| tree | e7500119ff7671e247dcd518cbef1c0d18efb800 /commands | |
| parent | b365cdda819e14f784fa10c1293cc5aec05c6b90 (diff) | |
| download | AleeBot-33cd7187620ec6f79af1d426c9637c104bd73dc5.tar.gz AleeBot-33cd7187620ec6f79af1d426c9637c104bd73dc5.tar.bz2 AleeBot-33cd7187620ec6f79af1d426c9637c104bd73dc5.zip | |
More changes
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/suggestfeature.js | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/commands/suggestfeature.js b/commands/suggestfeature.js index 6492f33..52b077e 100644 --- a/commands/suggestfeature.js +++ b/commands/suggestfeature.js @@ -18,29 +18,15 @@ * * *************************************/ module.exports.run = async (client, message, args) => { -const talkedRecently = new Set(); - if (talkedRecently.has(message.author.id)) { - message.channel.send("Wait 1 minute before getting typing this again. - " + message.author); - } else { const { RichEmbed } = require('discord.js'); - client.channels.find('id', '427495678390960148').send( + client.channels.find('id', '435234655579537418').send( new RichEmbed() .setColor ('#1fd619') .setTitle('Suggestion') - .setDescription(`This is a suggestion from `+ message.author.username +` please react to it using the following emojis.`) + .setDescription(`This is a suggestion from `+ message.author.username +` and the guild ${message.guild.name}.`) .addField('Suggestion Contents', args.join(' ')) - ).then(message => { - message.react('\u2705'); - message.react('\u274E'); - }); + ) message.reply("Alright, your suggestion has been shown to the ACN guild.") - // Adds the user to the set so that they can't talk for a minute - talkedRecently.add(message.author.id); - setTimeout(() => { - // Removes the user from the set after a minute - talkedRecently.delete(message.author.id); - }, 60000); -} }; |
