diff options
| author | Trey <trey6979@gmail.com> | 2018-02-23 19:42:37 -0500 |
|---|---|---|
| committer | Trey <trey6979@gmail.com> | 2018-02-23 19:42:37 -0500 |
| commit | 5298f84e8d8b6ba1f710a9b30c0034ec75124fe8 (patch) | |
| tree | 729277bdb8a461a2bf9bdf40e3c74621c47dd9d4 /bot.js | |
| parent | 9c7300fee4bad78c58656a31d5ea5468353c85fe (diff) | |
| download | PokeBot-5298f84e8d8b6ba1f710a9b30c0034ec75124fe8.tar.gz PokeBot-5298f84e8d8b6ba1f710a9b30c0034ec75124fe8.tar.bz2 PokeBot-5298f84e8d8b6ba1f710a9b30c0034ec75124fe8.zip | |
some suggestion command thingy
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -7,7 +7,7 @@ bot.on('ready', () => { }); bot.on('guildMemberAdd', (member) => { - bot.channels.get('416633835216830495').send(`Welcome ${member.user.tag}!`); + bot.channels.get('416633835216830495').send(`Welcome @${member.user.tag}!`); const role = member.guild.roles.find('name', 'Trainers'); member.addRole(role); }); @@ -32,12 +32,22 @@ function parseCommand(msg) { .setTitle('PokeBot Command List') .setDescription('These are the commands you can use. My prefix is `p:`') .addField('Core', 'help\nping', true) + .addField('Utility', 'suggest', true) .setFooter('PokeBot Beta') ); break; case 'ping': 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(' ')) + ); + break; } } bot.login(config.token); |
