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:
7f9bdcd
)
good
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Fri, 7 Sep 2018 13:05:24 +0000
(22:05 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Fri, 7 Sep 2018 13:05:24 +0000
(22:05 +0900)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
18bb950
..
753a8a0
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-57,7
+57,7
@@
class WebHookHandler(tornado.web.RequestHandler):
def post(self):
events = tornado.escape.json_decode(self.request)
for event in events:
- if
event['replyToken'] != None
:
+ if
'replyToken' in event
:
linebot.reply_message(
event['replyToken'],
TextSendMessage(text=self.main('RR')))