aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-24 17:24:26 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-24 17:24:26 -0400
commit85908fb69c371b46ccef1721107e77a98c705452 (patch)
tree83a3abe9195c0c7515191540dd2c9712141b3e89 /commands
parent982f32bdf76a20c4092d53387f1aa31e95a80b0a (diff)
downloadPokeBot-85908fb69c371b46ccef1721107e77a98c705452.tar.gz
PokeBot-85908fb69c371b46ccef1721107e77a98c705452.tar.bz2
PokeBot-85908fb69c371b46ccef1721107e77a98c705452.zip
listing items
Diffstat (limited to 'commands')
-rw-r--r--commands/Pokemon/lsitem.js28
1 files changed, 11 insertions, 17 deletions
diff --git a/commands/Pokemon/lsitem.js b/commands/Pokemon/lsitem.js
index 0830242..e06aa78 100644
--- a/commands/Pokemon/lsitem.js
+++ b/commands/Pokemon/lsitem.js
@@ -18,24 +18,18 @@
*
* *************************************/
-exports.run = async (bot, msg) => {
+exports.run = async (bot, msg, args) => {
if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
- if (msg.member.roles.find('name', 'Aqua')) {
- msg.member.removeRole(msg.guild.roles.find('name', 'Aqua'));
- msg.reply('Alright, you are not longer in team Aqua.');
- }
- else if (msg.member.roles.find('name', 'Rocket')) {
- msg.member.removeRole(msg.guild.roles.find('name', 'Rocket'));
- msg.reply('Alright, you are not longer in team Rocket.');
- }
- else if (msg.member.roles.find('name', 'Magma')) {
- msg.member.removeRole(msg.guild.roles.find('name', 'Magma'));
- msg.reply('Alright, you are not longer in team Magma.');
- }
- else {
- msg.reply('You are not in a team.');
- }
+ const { RichEmbed } = require('discord.js');
+ const data = args.join(' ').split('|');
+ msg.guild.channels.get('426906377001107477').send(
+ new RichEmbed()
+ .setTitle('A new pokemon is up for sale!')
+ .addField('Starting Price', data[1], true)
+ .addField('Pokemon', data[0], true)
+ .addField('Other', data[2], true)
+ .addField('Seller:', `<@${msg.author.id}>`));
};
exports.conf = {
@@ -45,6 +39,6 @@ exports.conf = {
exports.help = {
name: 'lsitem',
- description: 'Leave the team you currently are in.',
+ description: 'List an item to the marketplace.',
usage: '<pokemon>|<credits>|<other>',
};