Extract hooks
This commit is contained in:
parent
c8d495d508
commit
002f2463a3
9 changed files with 104 additions and 76 deletions
|
|
@ -22,8 +22,9 @@ def load(context):
|
|||
"http://developer.mapquest.com/")
|
||||
return None
|
||||
|
||||
from nemubot.hooks.messagehook import MessageHook
|
||||
context.add_hook("cmd_hook", MessageHook(cmd_geocode, "geocode"))
|
||||
import nemubot.hooks
|
||||
context.add_hook("cmd_hook",
|
||||
nemubot.hooks.Message(cmd_geocode, "geocode"))
|
||||
|
||||
|
||||
def help_full():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue