aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-23 19:52:39 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-23 19:52:39 -0500
commit9ca9a972e321190975ff3234bcf24a705d90b198 (patch)
treed405a86ed0eaac79b52a4e7304598a1a460f3a6a
parentb72178f3913bcc5445b5beb742147f916b3d545f (diff)
downloadPokeBot-9ca9a972e321190975ff3234bcf24a705d90b198.tar.gz
PokeBot-9ca9a972e321190975ff3234bcf24a705d90b198.tar.bz2
PokeBot-9ca9a972e321190975ff3234bcf24a705d90b198.zip
Testing this
-rw-r--r--bot.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/bot.js b/bot.js
index ba93e4b..8120232 100644
--- a/bot.js
+++ b/bot.js
@@ -40,14 +40,16 @@ function parseCommand(msg) {
msg.channel.send(':ping_pong: Pong! ' + Math.floor(bot.ping) + 'ms.');
break;
case 'suggest':
- //bot.channels.get('416726932927938570').send(
- //new Discord.RichEmbed()
- //.setColor (0x00ae86)
- //.setTitle('Suggestion')
- //.setDescription('This is a suggestion from a community member for something relating to the server. Please rate it based on your opinion, and a staff member will decide what to do with the suggestion.')
- //.addField('Suggestion Contents', args.join(' '))
- //);
- bot.channels.get('416726932927938570').send('this is a test!')
+ bot.channels.get('416726932927938570').send(
+ new Discord.RichEmbed()
+ .setColor (0x00ae86)
+ .setTitle('Suggestion')
+ .setDescription('This is a suggestion from a community member for something relating to the server. Please rate it based on your opinion, and a staff member will decide what to do with the suggestion.')
+ .addField('Suggestion Contents', args.join(' '))
+ ).then(message => {
+ message.react('\u2705');
+ message.react('\u274E');
+ });
break;
}
}