Support Server: https://discord.gg/BzaksqP
Requirements: Python 3.8, PostgreSQL (optional but recommended. Some features won't work/will bug out without it)
All the dependencies are in requirements.txt
. Install with:
pip install -r requirements.txt
Linux users can use ./scripts/install
. This will also set up a virtual environment.
To run the bot, you need to have some environmental variables. You can either export them directly with your shell (export KEY=VALUE
) or create a .env
file with required configuration. Check variables.py
for a complete list of env vars.
Sample configuration (.env
):
DATABASE_URL=postgresql://username:password@localhost/database_name
TOKEN=<Bot Token>
PREFIX=.
DEV_MODE=False
For PostgreSQL, for some features to work, you need to enable the pg_trgm
extension. To do it via psql
:
CREATE EXTENSION pg_trgm;
Contact me if you are contributing to this bot and require a sample of the production database to populate initial tables (such as waifus
).
Just do:
./scripts/run
cd src
python main.py
Create an issue or pull request as you see fit!
If you are creating a pull request, ensure:
- To use
black
as your PEP-8 formatter, NOT the defaultautopep8
. (It's better!) - If you're on Linux, it's highly recommended to do
./scripts/lint
to lint your code and./scripts/test
to test it. - If you're on Windows (and for Linux peeps too), well ¯\_(ツ)_/¯. Set up your IDE/editor with
black
,pylint
,autoflake
andisort
.