(self)
Acts on a user not performing an action.
        Sends a message and alerts the bot's reporting channel.
Acts on a user not performing an action.
        Sends a message and alerts the bot's reporting channel.
Acts on a user not performing an action . Sends a message and alerts the bot s reporting channel .
def _act_on_not_performed(self):
        # type: () -> None
        '''
        Acts on a user not performing an action.
        Sends a message and alerts the bot's reporting channel.
        '''
        # Send escalation method
        self.send_message('escalated')
        # Alert bot's reporting channel
        if self.parent.reporting_channel is not None:
            # Format message
            if self._last_message.text:
                comment = self._last_message.text
            else:
                comment = 'No comment provided.'
            comment = '\n'.join('> ' + s for s in comment.split('\n'))
            self.parent.chat.send_message(
                self.parent.reporting_channel,
                self.parent.messages['report'].format(username=self['name'],
                                                      title=self.pending_task.title,
                                                      description=self.pending_task.description,
                                                      comment=comment,
                                                      url=self.pending_task.url))
def _act_on_not_performed ( self ) : # type: () -> None # Send escalation method self . send_message ( 'escalated' ) # Alert bot's reporting channel if self . parent . reporting_channel is not None : # Format message if self . _last_message . text : comment = self . _last_message . text else : comment = 'No comment provided.' comment = '\n' . join ( '> ' + s for s in comment . split ( '\n' ) ) self . parent . chat . send_message ( self . parent . reporting_channel , self . parent . messages [ 'report' ] . format ( username = self [ 'name' ] , title = self . pending_task . title , description = self . pending_task . description , comment = comment , url = self . pending_task . url ) )