def command(self, command, token, team_id=None, methods=['GET'], **kwargs):
        if team_id is None:
            team_id = self.team_id
        if team_id is None:
            raise RuntimeError('TEAM_ID is not found in your configuration!')

        def deco(func):
            self._commands[(team_id, command)] = (func, token, methods, kwargs)
            return func
        return deco
A decorator used to register a command.
dataset/ETHPy150Open VeryCB/flask-slack/flask_slack/slack.py/Slack.command