Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

thboss/g5-discord-bot

Repository files navigation

G5 Bot

A Discord bot to manage CS:GO PUGs and teams matches. Connects to G5API.

Setup

  1. 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.
  2. Install libpq-dev (Linux only?). This is needed to install the psycopg2 Python package.

    • Linux command is sudo apt-get install libpq-dev.
  3. Run pip3 install -r requirements.txt in the repository's root directory to get the necessary libraries.

  4. Install PostgreSQL 9.5 or higher.

    • Linux command is sudo apt-get install postgresql.
    • Windows users can download here.
  5. 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

  6. Modify config.json.

  7. Apply the database migrations by running python3 migrate.py up.

  8. Run the launcher Python script by running, python3 run.py.

Thanks To

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

About

A Discord bot to manage CS:GO matches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages