Lazyuki / DiscordStatsBotPython

DiscordStatsBot (Ciri) migrated from Javascript to Python because why not.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DiscordStatsBotPython

DiscordStatsBot (Ciri) migrated from Javascript to Python because why not.

Setup

Get Python 3.6

  1. python3 -m venv ~/.venv/ciri
  2. source ~/.venv/ciri/bin/activate
  3. pip install -U -r requirements.txt

Setup Postgres On GCP

  1. sudo apt-get update
  2. sudo apt-get -y install postgresql postgresql-client postgresql-contrib
  3. sudo -s
  4. sudo -u postgres psql postgres
  5. \password postgres => enter password
  6. CREATE EXTENSION adminpack;
  7. CREATE USER your_shell_name WITH PASSWORD '********';
  8. \q
  9. exit
  10. psql postgres
  11. CREATE DATABASE your_db_name;
  12. GRANT ALL PRIVILEGES ON DATABASE your_db_name TO your_shell_name;
  13. \connect your_db_name
  14. \i path_to_your_.sql_file

Running Locally

  1. python3 launcher.py

About

DiscordStatsBot (Ciri) migrated from Javascript to Python because why not.

License:MIT License


Languages

Language:Python 100.0%