slidcord.commands
#
Module Contents#
Classes#
Abstract base class to implement gateway commands (chatbot and ad-hoc) |
- class slidcord.commands.ListGuilds(xmpp)[source]#
Bases:
slidge.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
- async static list_guilds(form_values, session, _ifrom, guilds)[source]#
- Parameters:
session (slidcord.session.Session) –
guilds (list[discord.Guild]) –