A Discord bot to manage CS2 PUGs. Connects to DatHost API.
If you wish to test the bot without any setup, feel free to invite it to your Discord server.
Install PostgreSQL 9.5 or higher.
sudo apt-get install postgresql
Clone the project to your server
git clone https://github.com/thboss/g5-discord-bot
Install the necessary libraries.
pip3 install -r requirements.txt
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 password.
Quit psql with \q
Edit the configuration file
cp config.json.template config.json && nano config.json
Apply the database migrations
python3 migrate.py up
Finally, start the bot
python3 run.py
/create-lobby
(You can create unlimited number of lobbies as you need)
/link-steam
. This will grant you the Linked role, indicating you’re ready to join lobbies.