From 8f660d990fd7ebda897889464e1dd1acef742ffa Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 22 Mar 2018 17:30:20 -0700 Subject: [PATCH] exclude incompatible monkeybot code --- appservice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()