Module custom
source code
This module contains examples of how to create your own commands, by
creating a new command container, bounded to a specific command host,
and definding a set of commands inside of it.
Keep in mind that this module is not being loaded from anywhere, so the
code in here will not be executed and commands defined here will not be
detected.
|
|
CustomCommonCommands
The AUTOMATIC class variable, set to a positive value, instructs the
command system to automatically discover the command container and
enable it.
|
|
|
CustomChatCommands
This command container bounds only to the ChatCommands command host.
Therefore commands defined inside of the container will be available
only to a chat.
|
|
|
CustomPrivateChatCommands
This command container bounds only to the PrivateChatCommands
command host. Therefore commands defined inside of the container
will be available only to a private chat.
|
|
|
CustomGroupChatCommands
This command container bounds only to the GroupChatCommands command
host. Therefore commands defined inside of the container will be
available only to a group chat.
|
Imports:
CommandContainer,
command,
doc