A Discord bot that tracks stats in a Pokemon Showdown battle.
- npm
- PostgreSQL
- You'll need to setup a Discord application and bot. You can find instructions on how to setup a bot here.
- You'll also need to setup a PostgreSQL server. You can find instructions on how to install PostgreSQL here and connect to a PostgreSQL server here.
- You'll also need a Pokemon Showdown account. Just go here, create a username, and add a password to this username.
- You'll also need a draft-league.nl API key. Good luck getting that though lmao. The bot will work fine without it, you just won't be able to use the DL updating method.
- You'll also need a Google service account. Google is slowly phasing these out from their developer program, but for Google Sheets they still work. You can find out how to setup a service account here. Copy the JSON from this service account.
$ git clone [email protected]:PorygonBot/bot-ts.git
$ cd bot-ts
$ touch .env
$ npm install
$ npm run migrate
$ npm run start
Your .env
should look like this:
TOKEN=
DATABASE_URL=
PS_USERNAME=
PS_PASSWORD=
DL_API_KEY=
DL_API_URL=
GOOGLE_SERVICE_ACCOUNT=
- The Pokefinium Discord Server for inspiration
- MewsTheBest for the art
- @koreanpanda345 for general help with the code
- @rishiosaur for async & Google Sheets help