Acolyte: A Small and Simple Discord Bot Written On Python

Share Your Love

Hello Guys, Today In this post I am going explaining about another GitHub repository Acolyte, a small and simple discord bot written on python that utilizes the discord.py library.

Dependencies:

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 $PATH.

Setup:

  1. Clone the repo and run poetry shell to create a virtual environment and spawn a shell
  2. Install dependencies with poetry install
  3. Create an .env file from the .env.example
  4. Run python -m acolyte to start the bot.

Hack away:

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.

GitHub:

Please comment and share the GitHub repository and wants to share more repositories please WhatsApp us.

Share Your Love
Avatar photo
Lingaraj Senapati

Hey There! I am Lingaraj Senapati, the Founder of lingarajtechhub.com My skills are Freelance, Web Developer & Designer, Corporate Trainer, Digital Marketer & Youtuber.

Articles: 411

Newsletter Updates

Enter your email address below to subscribe to our newsletter