PokeBot has collection of data of 890 pokemons and can perform various commands. All data was scraped using Pokemon Data Scraper
Other than this, all pokemon data is available in both, a single file and a categorized folder in array[]
and map{}
structures in Pokedex
p!dev
: Get information about the Developer, me!p!info pokemon_name
: Get information about a specific pokemonp!random
: Get information about a random pokemon (Yet to be implemented)p!battle pokemon 1, pokemon 2, ..., pokemon n
: Battletwo
ormultiple
pokemonsp!ping
: Ping PokeBotp!help
: List all PokeBot commands
pokebot.js
contains all the functions and logic. I might make different modules once I learn moreJavaScript
config.json
containsBot Token
, paste yours to get the bot up and runningdata.json
containsmap{}
of 890{ pokemon_name : data }
pairsdev.json
contains information about the Developer, me!
-
I found this very informative starting guide that helped me set up the
environment
-
After pasting your
Bot Token
indata/config.js
, runnode pokebot.js
-
You can also install
nodemon
bynpm install --save-dev nodemon -g
- then add
"start" : "nodemon pokebot.js"
insidescripts{}
inpackage.json
- then simply run
nodemon pokebot.js
, this will automatically restart the server whenever you make changes in your files and save them
-
Last but not least, check out Embed Messages to design beautiful message templates