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:
4862dc8
)
諦め
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Fri, 7 Sep 2018 22:10:53 +0000
(07:10 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Fri, 7 Sep 2018 22:10:53 +0000
(07:10 +0900)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
f46d87f
..
b195a8d
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-55,6
+55,7
@@
class WebHookHandler(tornado.web.RequestHandler):
return ans
def post(self):
+ '''
signature = self.request.headers['X-Line-Signature']
body = self.request.body
parser = WebhookParser(ch)
@@
-63,6
+64,7
@@
class WebHookHandler(tornado.web.RequestHandler):
except InvalidSignatureError:
tornado.web.HTTPError(404)
return
+ '''
dic = tornado.escape.json_decode(self.request.body)
for event in dic['events']:
if 'replyToken' in event: