dhmoon91 / porobot

0 stars 0 forks source link

web:

  1. cd web
  2. run yarn start

Running:

  1. Ping stanley for env variables;
  2. Create .env file on root directory with following:
RIOT_API_KEY={APIKEY}
DISCORD_TOKEN={TOKEN}
  1. Install required pip library: pip3 install -r requirements.txt
  2. Run npx nodemon --exec python3 bot.py
  3. IF ^ fails, python3 bot-main.py
  4. We use black as auto formatter.
  1. To disable pylint on pre-push and enable on pre-commit, please run following command:
pre-commit uninstall --hook-type pre-push
pre-commit install --hook-type pre-commit

After above command, if .git/hooks/pre-commit file has been created, then your pre-commit should work as expected.

  1. To call the bot with the desired prefix locally,
  1. Install Postgresql server 9.6.2 or up brew install postgresql and start it brew services start postgresql Initialize development and test databases as described below: Use following command to bootstrap dev databases
$ psql postgres
postgres=# CREATE USER admin_bot WITH SUPERUSER PASSWORD 'test';
postgres=# CREATE DATABASE bot_dev OWNER admin_bot;
  1. DB Migration and setup: Base ORM and DB engine; SQLAlchemy and psycopg2

Packages:

Pydash https://pydash.readthedocs.io/en/latest/index.html

riotwatcher https://riot-watcher.readthedocs.io/en/latest/