From 33cd7187620ec6f79af1d426c9637c104bd73dc5 Mon Sep 17 00:00:00 2001 From: Alee Date: Mon, 16 Apr 2018 09:18:53 -0400 Subject: More changes --- commands/suggestfeature.js | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'commands/suggestfeature.js') 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); -} }; -- cgit v1.2.3