diff options
| -rw-r--r-- | bot_discord.js | 2 | ||||
| -rw-r--r-- | commands/suggestfeature.js | 20 |
2 files changed, 4 insertions, 18 deletions
diff --git a/bot_discord.js b/bot_discord.js index fd1b9da..be99c35 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -24,7 +24,7 @@ const client = new Discord.Client({ disableEveryone: true
});
const abVersion = '2.8.0 Beta';
-const prefix = 'ab:';
+const prefix = 'abb:';
const fs = require('fs');
const config = require('./absettings.json');
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); -} }; |
