def __init__(self, channel_list, nickname, server, port=6667): print "initializing... ", SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname) self.channels_to_join = channel_list self.last_msg_time = 0 # timestamp of the last message sent, so the next # one can be delayed, if necessary self.last_queries = { } # this stores the last query for everyone who asks # about results (i.e. channels and queries) self.stats = YaCyStats( ) # Object for statistics about the YaCy network self.ping_timer = None # handle of the client->server ping timer self.ping_channel = channel_list[0] # name of the ping target print "done"