original_docstring:  Called when a new direct message arrives 
docstring: Called when a new direct message arrives
docstring_tokens: Called when a new direct message arrives
code: def on_direct_message(self, status):
          """ Called when a new direct message arrives """
          try:
              if status.direct_message['sender_id'] != self.config.my_id:
                  log(
                      BotEvents.NET.GetDM, "{}: {}".format(
                          status.direct_message['sender_screen_name'],
                          status.direct_message['text']
                          )
                      )
                  return True
          except BaseException as my_event:
              log(BotEvents.DBG.Warn, str(my_event))
code_tokens: def on_direct_message ( self , status ) : try : if status . direct_message [ 'sender_id' ] != self . config . my_id : log ( BotEvents . NET . GetDM , "{}: {}" . format ( status . direct_message [ 'sender_screen_name' ] , status . direct_message [ 'text' ] ) ) return True except BaseException as my_event : log ( BotEvents . DBG . Warn , str ( my_event ) )
short_docstring: Called when a new direct message arrives
short_docstring_tokens: Called when a new direct message arrives
comment: """ Called when a new direct message arrives """