J-Wass / RLEB

https://www.reddit.com/r/RocketLeagueEsports
2 stars 0 forks source link

rewrite discord command if-else chain to a declarative syntax #186

Open J-Wass opened 1 year ago

J-Wass commented 1 year ago
registerCommand(BracketCommand)

BracketCommand = Command(name="Bracket", staff_only=True, handler=bracket_command_handler)
def bracket_command_handler(self. command_tokens: List[str]):
   # now use some fancy node-based tree of command tokens to answer