Commit 9784a570 authored by Abhijith PA's avatar Abhijith PA
Browse files

more close hit ,with listener

parent a89f1f34
......@@ -90,18 +90,18 @@ class MUCBot(sleekxmpp.ClientXMPP):
# If a room password is needed, use:
# password=the_room_password,
wait=True)
#app = Flask(__name__)
#@app.route('/',methods=['POST'])
#def foo():
# data = json.loads(request.data)
message = "i joined" #data["commits"][0]["message"]
app = Flask(__name__)
@app.route('/',methods=['POST'])
def foo():
data = json.loads(request.data)
message = "heeelllo" #data["commits"][0]["message"]
#try:
self.send_message(mto=self.room,mbody=message,mtype='groupchat')
#except:
# sys.exc_info()[0]
#return "OK"
#if __name__ == '__main__':
# app.run(host= '0.0.0.0')
if __name__ == '__main__':
app.run(host= '0.0.0.0')
def muc_online(self, presence):
......
Supports Markdown
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