class documentation

class Bot(pluginSupport): (source)

View In Hierarchy

xmppClient Bot protocol

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

initialize protocol

Parameters
rootreference to the application object
parentreference to the parent object
def connectionLost(self, reason): (source)

connection lost

Parameters
reason:strstring why the connection was lost
def connectionMade(self): (source)

XMPP connection successfully established

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

return a gettext function for the configured language

Parameters
channelignored, its just for compatibilty with ircClient plugins
def onMessage(self, msg): (source)

XMPP message received

Parameters
msgthe message
def register_ctl_command(self, *args, **kwargs): (source)

dummy for compatiblity with ircClient plugins

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 serviceOnline(self, servicename): (source)

Undocumented

def startPlugins(self): (source)

Undocumented

pluginSupportName: str = (source)

Undocumented

pluginSupportPath: str = (source)

Undocumented

Undocumented

Undocumented

network: str = (source)

Undocumented

nickname = (source)

Undocumented

Undocumented

Undocumented

translations: dict = (source)

Undocumented