OSDN Git Service
(root)
/
simple-tornado-bot
/
simple-tornado-bot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4ae3b6
)
dummy for acm
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Sat, 1 Sep 2018 12:37:26 +0000
(21:37 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Sat, 1 Sep 2018 12:37:26 +0000
(21:37 +0900)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
12da3a4
..
3eb08f0
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-35,8
+35,12
@@
class WebHookHandler(tornado.web.RequestHandler):
TextSendMessage(text=event.message.text)
)
self.set_status(200)
+
+class DummyHandler(tornado.web.RequestHandler):
+ def get(self):
+ self.write('OK')
-application = tornado.web.Application([(r'/callback',WebHookHandler)])
+application = tornado.web.Application([(r'/callback',WebHookHandler)
,(r'/',DummyHandler)
])
if __name__ == '__main__':
token = os.environ['Access_Token']