

def start(self):
    'Connect session to sessionhandler'

    def errback(fail):
        logger.log_err(fail.value)
    if self.port:
        service = internet.TCPClient(self.network, int(self.port), self)
        self.sessionhandler.portal.services.addService(service)
    self.task_isalive = task.LoopingCall(self.bot._isalive)
    self.task_keepalive = task.LoopingCall(self.bot._keepalive)
    self.task_prune = task.LoopingCall(self.bot._prune)
    self.task_channellist = task.LoopingCall(self.bot._channellist)
    self.task_isalive.start(900, now=False)
    self.task_keepalive.start(3500, now=False)
    self.task_prune.start(1800, now=False)
    self.task_channellist.start((3600 * 24), now=False)

dataset/ETHPy150Open evennia/evennia/evennia/server/portal/imc2.py IMC2BotFactory.start/original