diff --git a/commands/games/whos-that-pokemon.js b/commands/games/whos-that-pokemon.js index 30fd5262..fa3d3bee 100644 --- a/commands/games/whos-that-pokemon.js +++ b/commands/games/whos-that-pokemon.js @@ -51,10 +51,10 @@ module.exports = class WhosThatPokemonCommand extends Command { } } - async fetchPokemon(pokemon, peek = false) { + async fetchPokemon(pokemon) { if (this.cache.has(pokemon)) return this.cache.get(pokemon); const { body } = await snekfetch.get(`https://pokeapi.co/api/v2/pokemon-species/${pokemon}/`); - if (!peek) this.cache.set(body.id, body); + this.cache.set(body.id, body); return body; } diff --git a/commands/search/neopets-item.js b/commands/search/neopets-item.js index 5fb639a7..e91b1e3a 100644 --- a/commands/search/neopets-item.js +++ b/commands/search/neopets-item.js @@ -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') diff --git a/package.json b/package.json index d94c3835..1f3ce49c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "65.2.2", + "version": "65.2.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {