code: def command(self, regexp):
          
  
          def decorator(fn):
              self.add_command(regexp, fn)
              return fn
  
          return decorator
docs: Register a new command
  
          :param str regexp: Regular expression matching the command to register
  
          :Example:
  
          >>> @bot.command(r"/echo (.+)")
          >>> def echo(chat, match):
          >>>     return chat.reply(match.group(1))