Skip to content

ibveecnk/berlin.py

Repository files navigation

berlin.py

A discord bot written in python using discord.py

Table of content

Information on getting started

Logging

By default the bot is configured to write the log to a discord.log file in the root of the project directory. To access the logger from within a module, the logger is exposed as the logger property of the bot instance.

Example (within module):

@commands.command()
async def example(self, context: commands.Context):
    self.bot.logger.info("Here you can write to the logger.")

Running the bot

Install requirements/dependencies

pip install -r requirements.txt

Setup env file

  • Copy .env.dist to .env
  • Edit the parameters (e.g. TOKEN, etc.)

Start the bot

python main.py

Planned features

  • automatic reloading of modules (reload command)
  • docker image for easy deploying
  • music features
  • music queue