Commit 46b52071 authored by Abhijith PA's avatar Abhijith PA
Browse files

reaswhez

parent d28c43bf
......@@ -83,13 +83,12 @@ class MUCBot(sleekxmpp.ClientXMPP):
def foo():
data = json.loads(request.data)
message="null"
issue="issue"
m1 = data["user"]["username"]
m2 = data["object_attributes"]["title"]
m3 = data["object_attributes"]["url"]
m4 = data["object_attributes"]["note"]
m5 = data["issue"]["title"]
if issue == data["object_kind"]
if "issue" == data["object_kind"]:
message=m1 + 'created a new issue: ' + m2 + ' ' + m3
else
message=m1 + 'commented: ' + m4 + 'on issue:: ' + m5 + m3
......
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