The best Discord bot for weebs
MIT License
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:
black
as your PEP-8 formatter, NOT the default autopep8
. (It's better!)./scripts/lint
to lint your code and ./scripts/test
to test it.black
, pylint
, autoflake
and isort
.