Pokedex Upgrade

This commit is contained in:
Daniel Odendahl Jr
2017-04-16 19:08:24 +00:00
parent 762745103d
commit 2e9109f8d5
+3
View File
@@ -43,6 +43,9 @@ module.exports = class PokedexCommand extends Command {
location2 = 'foomoon';
}
try {
index = index.toString();
const pad = '000'.slice(index.length);
index = `${pad}${index}`;
const response = await snekfetch
.get(`http://www.serebii.net/pokedex-${dex}/${index}.shtml`);
const $ = cheerio.load(response.text);