mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Pokedex Upgrade
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user