be a bad person and swallow all command handling errors for now
This commit is contained in:
parent
aa64273ee8
commit
5590b88a17
2
main.py
2
main.py
|
@ -1,3 +1,4 @@
|
||||||
|
import fuckit
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
@ -35,6 +36,7 @@ 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']]
|
||||||
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":
|
||||||
|
|
Loading…
Reference in New Issue