(Not so) General purpose discord bot written in python for the discord.py rewrite library
I try to code this in a style that will continually surprise me no matter how often I look at the codebase
Requirements:
python > 3.6
Postgresql
- Set up DB
sudo -u postgres psql
CREATE DATABASE nanochan;
CREATE USER nanochan WITH PASSWORD '';
GRANT ALL PRIVILEGES ON DATABASE nanochan TO nanochan;
- Install dependencies
pip install -r requirements.txt
-
Set up config.yml in ./config/config.yml with token and db creds
-
run with
python3 run.py
DOCKER (WIP)
Docker (CE edition is fine)
Steps to run:
- Clone repo (duh)
- Copy config/example_config.yml to config/config.yml and edit values as needed.
- Run
docker-compose up
- Invite bot to server.
Once you have changed some code:
- Run
docker-compose build yinbot
- Re-run
docker-compose up