joshoxe / customisable-discord-bot

0 stars 0 forks source link

Custom commands & interface #7

Open joshoxe opened 3 years ago

joshoxe commented 3 years ago

Want the ability for someone in the web UI to add their own commands

basic examples:

joshoxe commented 2 years ago

Architecture design ideas

Data layer:

An SQLite (local) store of different command types:

On start, data layer repository pattern is used to load lists of commands -> ICommand, CustomCommand, CustomChanceCommand

Bot layer

In the bot layer, take lists of commands and load them as functions in memory CustomCommandModule Simple module that has a list of ICommands, which should have a Func/Action ready to Invoke

joshoxe commented 2 years ago

This should not be a relation data store now, it's a good candidate for schemaless commands