curious.commands.plugin

Classes for plugin objects.

Classes

Plugin(client) Represents a plugin (a collection of events and commands under one class).
PluginMeta
class curious.commands.plugin.Plugin(client: curious.core.client.Client)[source]

Bases: object

Represents a plugin (a collection of events and commands under one class).

client = None

The client for this plugin.

task_group = None

The task group for this plugin.

await load()[source]

Called when this plugin is loaded.

By default, this does nothing. It is meant to be overridden to customize behaviour.

Return type:None
await spawn(cofunc, *args)[source]

Spawns a task using this plugin’s task group.

await unload()[source]

Called when this plugin is unloaded.

By default, this does nothing. It is meant to be overridden to customize behaviour.

Return type:None
_get_commands()[source]

Gets the commands for this plugin.

Return type:list