monium.module package


monium.module.module module

class Module(client: MoniumClient)

Base module class, extend this in your module files to be recognized by the module loader

See the docs for event information. Any events need to be a async method of this class, like so:

async def on_ready():
    await self.client.cmd.register_command(SomeCommand(self))
id = 'unnamed'

Module id (recommended to be the same as the folder name)

name = 'unnamed module'

Module name

version = (0, 0, 0)

Module version as a tuple with 3 numbers

authors = []

Module authors as a list of strings


MoniumClient instance


Translation class instance


Specialized logging.Logger for this module


Will be called after __init__, you should use this for any initialization.

If you need to use anything in client, use on_ready