A Discord bot to manage CS:GO PUGs and teams matches. Connects to G5API.
-
First you must have a bot instance to run this script on. Follow Discord's tutorial here on how to set one up.
- The required permissions is
1360325712
. - Enable the "server members intent" for your bot, as shown here.
- The required permissions is
-
Install libpq-dev (Linux only?). This is needed to install the psycopg2 Python package.
- Linux command is
sudo apt-get install libpq-dev
.
- Linux command is
-
Run
pip3 install -r requirements.txt
in the repository's root directory to get the necessary libraries. -
Install PostgreSQL 9.5 or higher.
- Linux command is
sudo apt-get install postgresql
. - Windows users can download here.
- Linux command is
-
Run the psql tool with
sudo -u postgres psql
and create a database by running the following commands:CREATE ROLE "g5" WITH LOGIN PASSWORD 'yourpassword'; CREATE DATABASE "g5" OWNER g5;
Be sure to replace
'yourpassword'
with your own desired password.Quit psql with
\q
-
Modify
config.json
. -
Apply the database migrations by running
python3 migrate.py up
. -
Run the launcher Python script by running,
python3 run.py
.
- Cameron Shinn for his initial implementation of csgo-league-bot.
- PhlexPlexico for his implementation of G5API