aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slack.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/slack.py b/slack.py
index b7b1852..da0a8b3 100644
--- a/slack.py
+++ b/slack.py
@@ -4,7 +4,13 @@ app.config.from_envvar('CONF')
@app.route("/echo", methods=['POST'])
def echo():
- return request.form['text']
+ d = {'response_type': 'in_channel',
+ 'text': "I'm the echo bot!"
+ 'attachments': [
+ {'text':request.form['text']}
+ ]
+ }
+ return jsonify(d)
if __name__=="__main__":
app.run()