aboutsummaryrefslogtreecommitdiffstats
path: root/slack.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-11-07 11:51:46 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2015-11-07 11:51:46 -0500
commita7a58a43754c4d058aa439418b3e7aa9dd2636e7 (patch)
tree348f963554ca674bda79a2c80ad6837dc245ee15 /slack.py
parentf504b7b77113bbdb5b254d1d56c19b39506ef353 (diff)
downloadslack-a7a58a43754c4d058aa439418b3e7aa9dd2636e7.tar.gz
tentative echo bot
Diffstat (limited to 'slack.py')
-rw-r--r--slack.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/slack.py b/slack.py
new file mode 100644
index 0000000..2100755
--- /dev/null
+++ b/slack.py
@@ -0,0 +1,9 @@
+from flask import Flask, jsonify, request
+app = Flask(__name__)
+
+@app.route("/echo", methods=['POST'])
+def echo():
+ return request.form['text']
+
+if __name__=="__main__":
+ app.run(debug=True)