original_docstring: A flask view function which dispath the http request to
          matching registered command handler.
          Before using Flask-BearyChat, you should add url rule with this method
          as `view_func`.
          
docstring: A flask view function which dispath the http request to
  matching registered command handler.
  Before using Flask-BearyChat, you should add url rule with this method
  as `view_func`.
docstring_tokens: A flask view function which dispath the http request to matching registered command handler . Before using Flask - BearyChat you should add url rule with this method as ` view_func ` .
code: def dispatch(self):
          """A flask view function which dispath the http request to
          matching registered command handler.
          Before using Flask-BearyChat, you should add url rule with this method
          as `view_func`.
          """
          data = json.loads(request.data)
  
          token = data['token']
          if token != self.bearychat_token:
              raise TokenError()
  
          trigger_word = data.get('trigger_word')
          text = data.get('text')
          command = text[len(trigger_word) + 1:].split()
          if len(command) > 0:
              command = command[0]
          func, kwargs = self._funcs[command]
          kwargs.update(data)
          return func(**kwargs)
code_tokens: def dispatch ( self ) : data = json . loads ( request . data ) token = data [ 'token' ] if token != self . bearychat_token : raise TokenError ( ) trigger_word = data . get ( 'trigger_word' ) text = data . get ( 'text' ) command = text [ len ( trigger_word ) + 1 : ] . split ( ) if len ( command ) > 0 : command = command [ 0 ] func , kwargs = self . _funcs [ command ] kwargs . update ( data ) return func ( ** kwargs )
short_docstring: A flask view function which dispath the http request to
  matching registered command handler.
short_docstring_tokens: A flask view function which dispath the http request to matching registered command handler .
comment: """A flask view function which dispath the http request to
          matching registered command handler.
          Before using Flask-BearyChat, you should add url rule with this method
          as `view_func`.
          """