aboutsummaryrefslogtreecommitdiff
path: root/commands/suggestfeature.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-16 09:18:53 -0400
committerAlee <alee14498@gmail.com>2018-04-16 09:18:53 -0400
commit33cd7187620ec6f79af1d426c9637c104bd73dc5 (patch)
treee7500119ff7671e247dcd518cbef1c0d18efb800 /commands/suggestfeature.js
parentb365cdda819e14f784fa10c1293cc5aec05c6b90 (diff)
downloadAleeBot-33cd7187620ec6f79af1d426c9637c104bd73dc5.tar.gz
AleeBot-33cd7187620ec6f79af1d426c9637c104bd73dc5.tar.bz2
AleeBot-33cd7187620ec6f79af1d426c9637c104bd73dc5.zip
More changes
Diffstat (limited to 'commands/suggestfeature.js')
-rw-r--r--commands/suggestfeature.js20
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);
-}
};