slidcord.commands#

Module Contents#

Classes#

ListGuilds

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) –

NAME = 'List your discord "servers"'[source]#
HELP = 'List your discord servers and their channels'[source]#
ACCESS[source]#
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: