za419 / CadenceBot

A Discord bot for Cadence Radio
MIT License
2 stars 1 forks source link

Provide config mechanism to allow a custom command to alias another custom command within its own class #79

Closed za419 closed 3 years ago

za419 commented 3 years ago

That is to say, any equalTo command may alias any other equalTo, but may not alias a startsWith, targeted, or multitargeted command.

My proposed syntax for this is very simple:

"customCommands": {
  "equalTo": {
    "Cadence flip a coin": {
      "random": [ "heads", "tails" ]
    },
    "Cadence coinflip": {
      "alias": "Cadence flip a coin"
    }
  }
}

Here, Cadence coinflip is an alias for Cadence flip a coin.