erin package

Submodules

erin.app module

erin.app.start(**kwargs)[source]

Starts the bot and obtains all necessary config data.

erin.client module

class erin.client.ErinClient(config, *args, **kwargs)[source]

Bases: discord.ext.commands.bot.Bot

Custom implementation designed to load configuration from the TOML config file and dynamic console configurations

on_command(ctx)[source]
setup()[source]

Important setup functions and their configurations have to be called here.

erin.utils module

erin.utils.find_members(ctx)[source]

Parses arguments passed to a command and returns a list of me

Parameters:ctx – pass a discord.ext.cli.Context object
Returns:a list of discord.Member objects
erin.utils.get_command_args(ctx, lower_case=True)[source]

Gets the arguments passed to a command.

Parameters:
  • ctx – pass a discord.ext.cli.Context object
  • lower_case – returns arguments in lower case
Returns:

list

Module contents