Package gozerbot :: Module jabberbot :: Class Jabberbot
[hide private]
[frames] | no frames]

Class Jabberbot

source code

     object --+    
              |    
botbase.BotBase --+
                  |
                 Jabberbot

jabber bot class

Instance Methods [hide private]
 
__init__(self, name='jabbermain', owner=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_resumedata(self) source code
 
_doprocess(self)
process loop
source code
 
_outputloop(self) source code
 
_keepalive(self)
keepalive method ..
source code
 
_keepchannelsalive(self)
channels keep alive method
source code
 
_connect(self, host, user, password, port=5222)
connect to server ..
source code
 
connect(self, host, user, password, port=5222, ipv6=None, ssl=None, reconnect=True) source code
 
joinchannels(self)
join channels
source code
 
broadcast(self, txt) source code
 
sendpresence(self, to)
send presence
source code
 
iqHandler(self, conn, node)
handle iq stanza's
source code
 
messageHandler(self, conn, msg)
message handler
source code
 
presenceHandler(self, conn, pres)
overloaded presence handler
source code
 
reconnect(self) source code
 
disconnectHandler(self)
overloaded disconnect handler
source code
 
send(self, what) source code
 
rawsend(*args, **kwargs)
the locked function
source code
 
sendnocb(self, what)
send via jabber.Client and without checking for output monitor
source code
 
action(self, printto, txt, fromm=None, groupchat=True)
action txt to printto
source code
 
say(self, printto, txt, fromm=None, groupchat=True, speed=5, type='normal')
say txt to printto
source code
 
saynocb(self, printto, txt, fromm=None, groupchat=True, speed=5, type='normal')
say txt to printto
source code
 
wait(self, msg, txt)
wait for user response
source code
 
save(self)
save bot's state
source code
 
quit(self)
send unavailable presence
source code
 
exit(self)
exit the bot
source code
 
join(self, channel, password=None, nick=None)
join conference
source code
 
part(self, channel)
leace conference
source code
 
outputnolog(self, printto, what, how, who=None, fromm=None)
doe output but don't log it
source code
 
topiccheck(self, msg)
chek if topic is set
source code
 
settopic(self, channel, txt)
set topic
source code
 
gettopic(self, channel)
get topic
source code
 
UnregisterHandlerOnce(self, a, b, xmlns=None)
hack to work around missing method
source code
 
sendraw(self, msg) source code

Inherited from botbase.BotBase: connectwithjoin, ownercheck, shutdown, stop

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name='jabbermain', owner=[])
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_keepalive(self)

source code 

keepalive method .. send empty string to self every 3 minutes

_connect(self, host, user, password, port=5222)

source code 

connect to server .. start read loop

connect(self, host, user, password, port=5222, ipv6=None, ssl=None, reconnect=True)

source code 
Overrides: botbase.BotBase.connect

joinchannels(self)

source code 

join channels

Overrides: botbase.BotBase.joinchannels

broadcast(self, txt)

source code 
Overrides: botbase.BotBase.broadcast

send(self, what)

source code 
Overrides: botbase.BotBase.send

rawsend(*args, **kwargs)

source code 

the locked function

Decorators:
  • @outlocked

save(self)

source code 

save bot's state

Overrides: botbase.BotBase.save

exit(self)

source code 

exit the bot

Overrides: botbase.BotBase.exit