discord_bot#

This module contains the discord bot implementation with definitions for the bot and its commands. The bot is implemented using the discord.py library and provides a simple command to test the bot.

class src.discord_bot.DiscordBot(config)[source]#

DiscordBot class to create a discord bot with the given configuration. This is necessary because of a own implementation with user configuration and pydantic validation.

async start()[source]#

Function to start the bot with the given token from the configuration. This function is called in the main function to start the bot.

async on_ready()[source]#

Event function to print a message when the bot is online.

register_commands()[source]#

Function to register the commands for the bot. This function is called in the constructor to register the commands.