simplebot-org / simplebot

Extensible Delta Chat bot written in Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add hooks to simplebot

adbenitez opened this issue · comments

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.

commented

ex. this will be useful for banning users, or helping users if they sent an unknown command

you probably mean hooks?

commented

probably ;)

commented

this is kind of solved in current master which allow to listen to commands and to normal messages, also before and after actions