shellbot.commands.default module¶
-
class
shellbot.commands.default.Default(engine=None, **kwargs)[source]¶ Bases:
shellbot.commands.base.CommandHandles unmatched command
This function looks for a named list and adds participants accordingly. Note that only list with attribute
as_commandset to true are considered.In other cases, the end user is advised that the command is unknown.
-
execute(bot, arguments=None, **kwargs)[source]¶ Handles unmatched command
Parameters: - bot (Shellbot) – The bot for this execution
- arguments (str or
None) – The arguments for this command
Arguments provided should include all of the user input, including the first token that has not been recognised as a valid command.
If arguments match a named list, then items of the list are added as participants to the channel. This applies only: - if the named list has the attribute
as_command- and if this is not a direct channel (limited to 1:1 interactions)
-