diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2015-11-07 12:21:32 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2015-11-07 12:21:32 -0500 |
| commit | d836f1673ee2cd5e86835fef137b486247c78c48 (patch) | |
| tree | cb9ab9a0980c2aec5e1e7b5c194a8504cba162e7 | |
| parent | c4224a73a0a4c01dcdd0e9b0d5b2d4adce069fe6 (diff) | |
| download | slack-d836f1673ee2cd5e86835fef137b486247c78c48.tar.gz | |
more goodies
| -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() |
