Skip to content

jiejasonliu/accuse-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accuse Bot

Discord bot for managing accusations with means to vote for an outcome. Users are moved up or down in the role hierarchy when punished or pardoned respectively. Accusations and any sentences given are serialized and are managed with coroutines to perform actions across their lifetime.

Supported Commands

/accuse         # Accuse a user of an offense
/history        # Sends a file containing accusation histories
/roles          # Set up the role hierarchy
/sentences      # Query a user's active sentences

Deployment

sudo apt update
sudo apt install git tmux python3 python3-dev python3-venv
mkdir bot && cd bot
git clone https://github.com/jiejasonliu/accuse-bot.git
cd accuse-bot
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt

Running the bot

Update .env before running the bot.
Run the command detached from the ephemeral shell (when ssh-ing into the host).
When using tmux, you can detach with CTRL + B then D.

tmux
python3 main.py 

About

Discord bot for managing accusations with means to vote for an outcome.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published