def __init__(self, nickname, password, channels, pm_to_nicks, *args, **kwargs): StatusBot.__init__(self, *args, **kwargs) self.nickname = nickname self.channels = channels self.pm_to_nicks = pm_to_nicks self.password = password self.hasQuit = 0 self._keepAliveCall = task.LoopingCall(lambda: self.ping(self.nickname))
def getContact(self, user=None, channel=None): # nicknames and channel names are case insensitive if user: user = user.lower() if channel: channel = channel.lower() return StatusBot.getContact(self, user, channel)