slidge.plugins.discord.commands
#
Module Contents#
Classes#
Abstract base class to implement gateway commands (chatbot and ad-hoc) |
- class slidge.plugins.discord.commands.ListGuilds(xmpp)[source]#
Bases:
slidge.core.command.Command
Abstract base class to implement gateway commands (chatbot and ad-hoc)
- Parameters:
xmpp (slidge.core.gateway.BaseGateway) –
- async run(session, ifrom, *args)[source]#
Entry point of the command
- Parameters:
session – If triggered by a registered user, its slidge Session
ifrom (slixmpp.JID) – JID of the command-triggering entity
args – When triggered via chatbot type message, additional words after the CHAT_COMMAND string was passed
- Returns:
Either a TableResult, a Form, a Confirmation, a text, or None