(self)
Completes the user's pending task. If any remaining tasks exist, sends
        a message alerting the user of more. Otherwise sends a farewell message
        and removes itself from the bot.
Completes the user's pending task. If any remaining tasks exist, sends
        a message alerting the user of more. Otherwise sends a farewell message
        and removes itself from the bot.
Completes the user s pending task . If any remaining tasks exist sends a message alerting the user of more . Otherwise sends a farewell message and removes itself from the bot .
def _complete_task(self):
        # type: () -> None
        '''
        Completes the user's pending task. If any remaining tasks exist, sends
        a message alerting the user of more. Otherwise sends a farewell message
        and removes itself from the bot.
        '''
        # Ignore an alert if they did it
        if self.pending_task.performed:
            ignored_alerts.ignore_task(self['name'], self.pending_task.title,
                                       'auto backoff after confirmation', BACKOFF_TIME)
        self.pending_task.set_verifying()
        self.pending_task = None
        self._reset_message()
        self._update_tasks()
        if self.tasks:
            self.send_message('bwtm')
        else:
            self.send_message('bye')
            self.parent.cleanup_user(self)
def _complete_task ( self ) : # type: () -> None # Ignore an alert if they did it if self . pending_task . performed : ignored_alerts . ignore_task ( self [ 'name' ] , self . pending_task . title , 'auto backoff after confirmation' , BACKOFF_TIME ) self . pending_task . set_verifying ( ) self . pending_task = None self . _reset_message ( ) self . _update_tasks ( ) if self . tasks : self . send_message ( 'bwtm' ) else : self . send_message ( 'bye' ) self . parent . cleanup_user ( self )