Jellyneo can have , in prices

This commit is contained in:
Daniel Odendahl Jr
2018-02-19 18:41:15 +00:00
parent 6a464198f9
commit c81b0a3bce
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class NeopetItemCommand extends Command {
const id = search.text.match(/\/item\/([0-9]+)/);
if (!id) return msg.say('Could not find any results.');
const { text } = await snekfetch.get(`https://items.jellyneo.net/item/${id[1]}/`);
const price = search.text.match(/[0-9]+ (NP|NC)/);
const price = search.text.match(/[0-9,]+ (NP|NC)/);
const embed = new MessageEmbed()
.setColor(0xFFCE31)
.setAuthor('Neopets', 'https://i.imgur.com/BP8qxJH.png')