Skip to content

PorygonBot/bot

Repository files navigation

Porygon

A Discord bot that tracks stats in a Pokemon Showdown battle.

Usage

Requirements

  • npm
  • PostgreSQL

Setup

  1. You'll need to setup a Discord application and bot. You can find instructions on how to setup a bot here.
  2. 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.
  3. You'll also need a Pokemon Showdown account. Just go here, create a username, and add a password to this username.
  4. 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.
  5. 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.

Commands (in order)

$ git clone git@github.com: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=

Credits

About

A Discord bot that tracks stats in a Pokemon Showdown battle.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published