예제 #1
0
파일: bot.py 프로젝트: izak/moobot
    def start(self):
        # Schedule active plugins
        for plugin in self.active:
            self.connection.execute_delayed(plugin.period(), activate, (self.connection, plugin))

        # Start it
        SingleServerIRCBot.start(self)
예제 #2
0
 def start(self):
     """Override default start function to avoid starting/stalling the bot with no connection"""
     while not self.connection.is_connected():
         self._connect()
         if not self.connection.is_connected():
             time.sleep(self.reconnection_interval)
             self.server_list.append(self.server_list.pop(0))
     SingleServerIRCBot.start(self)
예제 #3
0
파일: skype2irc.py 프로젝트: 7heo/skype2irc
 def start(self):
     """Override default start function to avoid starting/stalling the bot with no connection"""
     while not self.connection.is_connected():
         self._connect()
         if not self.connection.is_connected():
             time.sleep(self.reconnection_interval)
             self.server_list.append(self.server_list.pop(0))
     SingleServerIRCBot.start(self)
예제 #4
0
파일: irc.py 프로젝트: miri64/spline_social
 def start(self):
     try:
         SingleServerIRCBot.start(self)
     except BaseException:
         sys.stderr.write(traceback.format_exc())
         if self.mention_grabber:
             self.mention_grabber.terminate()
         exit(1)
예제 #5
0
파일: bot.py 프로젝트: M4rtoni/Bot_irc
 def start(self):
     self.__awake = datetime.now().isoformat()
     self.__next_function = datetime.now()
     SingleServerIRCBot.start(self)
예제 #6
0
 def start(self):
     SingleServerIRCBot.start( self )
     print "Could not establish a connection to a server"
예제 #7
0
 def start(self, bot):
    super(IRCAdapter, self).start(bot)
    SingleServerIRCBot.start(self)
예제 #8
0
 def start(self):
     SingleServerIRCBot.start(self)
     print "Could not establish a connection to a server"
예제 #9
0
파일: Bot.py 프로젝트: JoeyJo0/williewortel
 def start( self ):
     logging.debug( 'start()' )
     SingleServerIRCBot.start( self )