CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 5 forks source link

Recursive command system #93

Closed 2Cubed closed 7 years ago

2Cubed commented 7 years ago

Commands are currently separated into main commands and subcommands. This makes implementations for main commands without subcommands (!cactus) difficult and ugly.

Using a "recursive" system, embedding commands inside of other commands, we could allow for theoretically infinite subcommands in magic commands, while making defaults cleaner, as well.

2Cubed commented 7 years ago

Done in 904cbd1cd765f787d3ccb672a68401ffa59f64a3.