Commit 8f660d99 authored by Morgan McMillian's avatar Morgan McMillian

exclude incompatible monkeybot code

parent 79bca8ba
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment