A small and simple little Discord bot written in Python that utilizes the discord.py library.
The bot depends on Python 3.9 and uses poetry to manage dependencies.
libmagic is used for file type detection and the audio module depends on ffmpeg. Make sure you have libmagic installed and ffmpeg both installed and in your
- Clone the repo and run
poetry shellto create a virtual environment and spawn a shell
- Install dependencies with
- Create an
.envfile from the
python -m acolyteto start the bot.
Most reusable methods are kept under the
./acolyte/util folder. Acolyte is set up as a Python module, so you can import with absolute paths anywhere. E.g.
from acolyte.util.fs import Filesystem
Running the bot with
ACOLYTE_ENV set to development runs a filesystem observer that automatically reload everything under
/modules on change. Note that the reload is not atomic.
Flake8 is used for PEP8 code style rules. The max line length is increased to 119 lines though.