aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/lsitem.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-28 22:24:44 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-28 22:24:44 -0400
commit2622255cd43f787c37951cbc9b70168b433f32ad (patch)
treed892da75f420d95f91f66ac68922d65c04d7ed79 /commands/Pokemon/lsitem.js
parent9c78fab3c3872a0638f897b297428696b53772e5 (diff)
downloadPokeBot-2622255cd43f787c37951cbc9b70168b433f32ad.tar.gz
PokeBot-2622255cd43f787c37951cbc9b70168b433f32ad.tar.bz2
PokeBot-2622255cd43f787c37951cbc9b70168b433f32ad.zip
i am very stupid
Diffstat (limited to 'commands/Pokemon/lsitem.js')
-rw-r--r--commands/Pokemon/lsitem.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/Pokemon/lsitem.js b/commands/Pokemon/lsitem.js
index 4173277..fad8bb3 100644
--- a/commands/Pokemon/lsitem.js
+++ b/commands/Pokemon/lsitem.js
@@ -26,17 +26,17 @@ exports.run = async (bot, msg, args) => {
const msgs = await bot.channels.find('id', '428738848420397057').fetchMessages({ limit: 10 });
const mess = msgs.first();
if (!mess.embeds) return;
- const id = parseInt(mess.embeds[0].author.name.split(':')[1]);
+ const id = parseInt(mess.embeds[0].author.name.split(':')[1]) + 1;
bot.channels.find('id', '428738848420397057').send(
new RichEmbed()
.setTitle('A new pokemon is up for sale!')
- .setAuthor('ID: ' + id + 1)
+ .setAuthor('ID: ' + id)
.addField('Starting Price', data[1], true)
.addField('Pokemon', data[0], true)
.addField('Other', data[2], true)
.addField('Seller', `<@${msg.author.id}>`, true)
- .addField('How to bid', 'DM the seller for the pokemon giving them the id, ' + id + 1)
+ .addField('How to bid', 'DM the seller for the pokemon giving them the id, ' + id)
);
};