8000 GitHub - CyberFlameGO/bot: Discohook helper robot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CyberFlameGO/bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Discohook bot

Helper bot for Discohook.

Invite using https://discord.com/api/oauth2/authorize?client_id=633565743103082527&permissions=537250880&scope=bot.

Installing

Requires Python 3.8

python3.8 -m venv venv  # Create virtual environment
source venv/bin/activate  # Activate virtual environment
pip install -Ur requirements.txt  # Install dependencies

This project requires a postgres database, migrations are done with agnostic.

Create a role and a database.

CREATE ROLE discohookbot WITH LOGIN PASSWORD 'secure-password';
CREATE DATABASE discohookbot;
GRANT ALL ON DATABASE discohookbot TO discohookbot;

Bootstrap agnostic and migrate to the lastest database version.

agnostic -t postgres -u discohookbot -d discohookbot bootstrap --no-load-existing
agnostic -t postgres -u discohookbot -d discohookbot migrate

Running

Make sure that the virtual environment is active.

Load configuration using environment variables, or using a .env file.

Relevant environment variables are:

Once configured, the bot can be started using the following command:

python main.py

About

Discohook helper robot

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Python 100.0%
0