re-enable the auto-reloading of plugins
This commit is contained in:
parent
5590b88a17
commit
072b9205d7
2
main.py
2
main.py
|
@ -36,9 +36,9 @@ token = client.login_with_password(username=config["me"]["user"], password=confi
|
|||
|
||||
rooms = client.get_rooms()
|
||||
|
||||
@fuckit
|
||||
def room_callback(event):
|
||||
room = rooms[event[u'room_id']]
|
||||
reload()
|
||||
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']
|
||||
if event[u'user_id'] == config["me"]["user"]:
|
||||
|
|
|
@ -28,3 +28,7 @@ def botsnack(inp):
|
|||
@hook.command
|
||||
def debian_init(inp):
|
||||
return "part 1: http://aceattorney.sparklin.org/player.php?trial_id=57684"
|
||||
|
||||
@hook.regex("^matix has u$")
|
||||
def matix(inp):
|
||||
return "matix has u"
|
||||
|
|
Loading…
Reference in New Issue