Rework hook managment and add some tests
This commit is contained in:
parent
926648517f
commit
43c42e1397
8 changed files with 222 additions and 78 deletions
|
|
@ -30,8 +30,8 @@ def load(context):
|
|||
context.data.getNode("pics").setIndex("login", "pict")
|
||||
|
||||
import nemubot.hooks
|
||||
context.add_hook("in_Command",
|
||||
nemubot.hooks.Command(cmd_whois, "whois"))
|
||||
context.add_hook(nemubot.hooks.Command(cmd_whois, "whois"),
|
||||
"in","Command")
|
||||
|
||||
class Login:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue