Commit 106b1405 authored by Abhijith PA's avatar Abhijith PA
Browse files

progress

parent 6746a627
......@@ -94,7 +94,10 @@ class MUCBot(sleekxmpp.ClientXMPP):
@app.route('/',methods=['POST'])
def foo():
data = json.loads(request.data)
message = data["commits"][0]["message"]
m1 = data["user"][0]["username"]
m2 = data["object_attributes"][0]["title"]
m3 = data["object_attributes"][0]["url"]
message=m1," ",m2, " ",m3
#try:
self.send_message(mto=self.room,mbody=message,mtype='groupchat')
#except:
......
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