Add hooks to simplebot
adbenitez opened this issue · comments
adb commented
currently plugins are simply kept together in a list and can only handle incoming messages, plugins should register for the events they want to react to, ex. before a message is processed or after a message was processed, etc.
adb commented
ex. this will be useful for banning users, or helping users if they sent an unknown command
Simon Laux commented
you probably mean hooks?
adb commented
probably ;)
adb commented
this is kind of solved in current master which allow to listen to commands and to normal messages, also before and after actions