diff --git a/appservice.py b/appservice.py index 505f866..55beee6 100644 --- a/appservice.py +++ b/appservice.py @@ -13,7 +13,7 @@ app = Flask(__name__) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db.init_app(app) -cmdbot = MonkeyBot() +#cmdbot = MonkeyBot() txId = 0 @@ -37,8 +37,8 @@ def on_receive_events(transaction): chan_id = chan.pnut_chan else: adminrm = MatrixAdminRooms.query.filter_by(room_id=event['room_id']).first() - if adminrm: - cmdbot.on_message(event) + #if adminrm: + # cmdbot.on_message(event) return jsonify({}) if (event['content']['msgtype'] == 'm.text' @@ -161,7 +161,7 @@ def on_receive_events(transaction): if event['content']['membership'] == 'invite' and 'is_direct' in event['content'] and event['content']['is_direct'] == True: logging.info('>> GOT PRIVATE INVITE') - cmdbot.on_invite(event) + #cmdbot.on_invite(event) addadminrm = MatrixAdminRooms(matrix_id=event['sender'], room_id=event['room_id']) db.session.add(addadminrm) db.session.commit()