re-enable the auto-reloading of plugins

This commit is contained in:
Christine Dodrill 2015-11-29 08:23:53 -08:00
parent 5590b88a17
commit 072b9205d7
2 changed files with 5 additions and 1 deletions

View File

@ -36,9 +36,9 @@ token = client.login_with_password(username=config["me"]["user"], password=confi
rooms = client.get_rooms() rooms = client.get_rooms()
@fuckit
def room_callback(event): def room_callback(event):
room = rooms[event[u'room_id']] room = rooms[event[u'room_id']]
reload()
if u'user_id' in event and event[u'type'] == "m.room.message": if u'user_id' in event and event[u'type'] == "m.room.message":
print room.name, "<"+event[u'user_id']+">", event[u'content'][u'body'] print room.name, "<"+event[u'user_id']+">", event[u'content'][u'body']
if event[u'user_id'] == config["me"]["user"]: if event[u'user_id'] == config["me"]["user"]:

View File

@ -28,3 +28,7 @@ def botsnack(inp):
@hook.command @hook.command
def debian_init(inp): def debian_init(inp):
return "part 1: http://aceattorney.sparklin.org/player.php?trial_id=57684" return "part 1: http://aceattorney.sparklin.org/player.php?trial_id=57684"
@hook.regex("^matix has u$")
def matix(inp):
return "matix has u"