(self)
Main loop for the bot.
Main loop for the bot.
Main loop for the bot .
def run(self):
        # type: () -> None
        '''
        Main loop for the bot.
        '''
        while True:
            now = datetime.now(tz=pytz.utc)
            if now - self._last_task_poll > TASK_POLL_TIME:
                self._last_task_poll = now
                self.handle_new_tasks()
                self.handle_in_progress_tasks()
                self.handle_verifying_tasks()
            self.handle_messages()
            self.handle_users()
            time.sleep(.1)
def run ( self ) : # type: () -> None while True : now = datetime . now ( tz = pytz . utc ) if now - self . _last_task_poll > TASK_POLL_TIME : self . _last_task_poll = now self . handle_new_tasks ( ) self . handle_in_progress_tasks ( ) self . handle_verifying_tasks ( ) self . handle_messages ( ) self . handle_users ( ) time . sleep ( .1 )