thboss / CS2-PUGs

A Discord bot to manage CS2 Match on DatHost servers.
4 stars 1 forks source link

CS2 PUGs Bot

A Discord bot to manage CS2 PUGs. Connects to DatHost API.

Test

If you wish to test the bot without any setup, feel free to invite it to your Discord server.

Setup

  1. Install PostgreSQL 9.5 or higher.

    sudo apt-get install postgresql
  2. Clone the project to your server

    git clone https://github.com/thboss/g5-discord-bot
  3. Install the necessary libraries.

    pip3 install -r requirements.txt
  4. 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

  5. Edit the configuration file

    cp config.json.template config.json && nano config.json
  6. Apply the database migrations

    python3 migrate.py up
  7. Finally, start the bot

    python3 run.py

Requirements

How to play

Thanks To

  1. Cameron Shinn for his initial implementation of csgo-league-bot.