def dostart(self, botname=None, bottype=None, *args, **kwargs): """ create an START event and send it to callbacks. """ e = EventBase() e.bot = self e.botname = botname or self.cfg.name e.bottype = bottype or self.type e.origin = e.botname e.userhost = self.cfg.name +'@' + self.cfg.uuid e.nolog = True e.channel = botname e.txt = "%s.%s - %s" % (e.botname, e.bottype, str(time.time())) e.cbtype = 'START' e.ttl = 1 e.nick = self.cfg.nick or self.cfg.name self.doevent(e) logging.debug("%s - START event send to callbacks" % self.cfg.name)
def dostart(self, botname=None, bottype=None, *args, **kwargs): """ create an START event and send it to callbacks. """ e = EventBase() e.bot = self e.botname = botname or self.cfg.name e.bottype = bottype or self.type e.origin = e.botname e.userhost = self.cfg.name + '@' + self.cfg.uuid e.nolog = True e.channel = botname e.txt = "%s.%s - %s" % (e.botname, e.bottype, str(time.time())) e.cbtype = 'START' e.ttl = 1 e.nick = self.cfg.nick or self.cfg.name self.doevent(e) logging.debug("%s - START event send to callbacks" % self.cfg.name)
def dostart(self, botname=None, bottype=None, *args, **kwargs): """ create an START event and send it to callbacks. """ e = EventBase() e.bot = self e.botname = botname or self.name e.bottype = bottype or self.type e.origin = botname e.ruserhost = self.botname +'@' + self.uuid e.userhost = e.ruserhost e.channel = botname e.origtxt = str(time.time()) e.txt = e.origtxt e.cbtype = 'START' e.botoutput = False e.ttl = 1 e.nick = self.nick or self.botname self.doevent(e) logging.debug("%s - START event send to callbacks" % botname)
def dostart(self, botname=None, bottype=None, *args, **kwargs): """ create an START event and send it to callbacks. """ e = EventBase() e.bot = self e.botname = botname or self.name e.bottype = bottype or self.type e.origin = botname e.ruserhost = self.botname + '@' + self.uuid e.userhost = e.ruserhost e.channel = botname e.origtxt = str(time.time()) e.txt = e.origtxt e.cbtype = 'START' e.botoutput = False e.ttl = 1 e.nick = self.nick or self.botname self.doevent(e) logging.debug("%s - START event send to callbacks" % botname)