xmppClient Bot protocol

Method __init__ initialize protocol
Method startPlugins Undocumented
Method connectionMade XMPP connection successfully established
Method connectionLost connection lost
Method serviceOnline Undocumented
Method onMessage XMPP message received
Method sendme Undocumented
Method sendmsg sendmsg method simulating the ircClient.Bot.sendmsg method. so some ircClient plugins will work with xmppClient
Method get_gettext return a gettext function for the configured language
Method register_ctl_command dummy for compatiblity with ircClient plugins
def __init__(self, root, parent): (source)

initialize protocol

Parametersrootreference to the application object
parentreference to the parent object
def startPlugins(self): (source)
Undocumented
def connectionMade(self): (source)

XMPP connection successfully established

def connectionLost(self, reason): (source)

connection lost

Parametersreasonstring why the connection was lost (type: str)
def serviceOnline(self, servicename): (source)
Undocumented
def onMessage(self, msg): (source)

XMPP message received

Parametersmsgthe message
def sendme(self, channel, msg, encoding='UTF-8', fallback='ISO-8859-1'): (source)
Undocumented
def sendmsg(self, channel, msg, encoding='UTF-8', fallback='ISO-8859-1'): (source)

sendmsg method simulating the ircClient.Bot.sendmsg method. so some ircClient plugins will work with xmppClient

def get_gettext(self, channel=None): (source)

return a gettext function for the configured language

Parameterschannelignored, its just for compatibilty with ircClient plugins
def register_ctl_command(self, *args, **kwargs): (source)

dummy for compatiblity with ircClient plugins

API Documentation for OtfBot, generated by pydoctor at 2020-03-04 02:00:06.