Package gozerbot :: Module fleet :: Class Fleet
[hide private]
[frames] | no frames]

Class Fleet

source code

object --+
         |
        Fleet

contains multiple bots (list of bots)

Instance Methods [hide private]
 
__init__(self, fname)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
updatenick(self, name, nick) source code
 
getmainbot(self)
return the main bot of the fleet
source code
 
getfirstbot(self)
return the main bot of the fleet
source code
 
size(self)
return number of bots
source code
 
start(self, mainbot=None)
startup the bots
source code
 
resume(self, sessionfile) source code
 
save(self)
save fleet data and call save on all the bots
source code
 
list(self)
return list of bot names
source code
 
stopall(self)
return bot by name
source code
 
byname(self, name)
return bot by name
source code
 
replace(self, name, bot)
replace bot
source code
 
addbot(self, bot)
add a irc or jabber bot based on bot type
source code
 
startbot(self, name)
get a bot up and running ..
source code
 
resumebot(self, name, data, reto) source code
 
connect(self, name)
connect bot to irc server
source code
 
delete(self, name)
delete bot with name from fleet
source code
 
remove(self, bot)
delete bot by object
source code
 
exit(self, name)
call exit on all bots
source code
 
exitall(self)
call exit on all bots
source code
 
cmnd(self, event, name, cmnd)
do command on a bot by name
source code
 
cmndall(self, event, cmnd)
do a command on all bots
source code
 
broadcast(self, txt) source code

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, fname)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

startbot(self, name)

source code 

get a bot up and running .. create it if it is not in fleet