monium package

Submodules

monium.client module

class MoniumClient(*, loop=None, **options)

Main client class. Is a discord.Client with some monium-related additional functions.

ready = False

Is the bot ready for any Discord interaction?

cmd

The bot’s CommandParser instance.

mods = []

List of all available modules

get_instance_of(module_id: str)

Get an instance of a module

Parameters:module_id – Module ID
Returns:Module instance
Return type:Module
get_configuration(server_id: str) → monium.ext.configuration.Configuration

Get configuration object for server_id, will always return the same if MULTIPLE_SERVER_SUPPORT is off, will create config if it doesn’t exist.

Parameters:server_id – Server ID
Returns:Configuration object
Return type:Configuration
get_permissions(server_id: str) → monium.ext.permissions.Permissions

Get permissions object for server_id, will always return the same if MULTIPLE_SERVER_SUPPORT is off, will create permissions if it doesn’t exist.

Parameters:server_id – Server ID
Returns:Permission object
Return type:Permissions

monium.config module

get(key)

Get key from global config.py, or from default config if the key doesn’t exist.

If you’re trying to use this for your module’s configuration, see MoniumClient.get_configuration

Parameters:key – Key
Returns:Value