Commit 70645ea5 authored by Abhijith PA's avatar Abhijith PA
Browse files

progress1q222

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