diff options
Diffstat (limited to 'slack.py')
| -rw-r--r-- | slack.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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() |
