slidge.command.adhoc
#
Module Contents#
Classes#
A slixmpp-like plugin to handle adhoc commands, with less boilerplate and |
- class slidge.command.adhoc.AdhocProvider(xmpp)#
A slixmpp-like plugin to handle adhoc commands, with less boilerplate and untyped dict values than slixmpp.
- Parameters:
xmpp (slidge.core.gateway.base.BaseGateway) –
- register(command, jid=None)#
Register a command as a adhoc command.
this does not need to be called manually,
BaseGateway
takes care of that.- Parameters:
command (slidge.command.Command) –
jid (Optional[slixmpp.JID]) –
- Return type:
None
- async get_items(jid, node, iq)#
Get items for a disco query
- Parameters:
jid (slixmpp.JID) – who is requesting the disco
node (str) – which command node is requested
iq (slixmpp.Iq) – the disco query IQ
- Returns:
commands accessible to the given JID will be listed
- Return type:
slixmpp.plugins.xep_0030.stanza.items.DiscoItems