OSDN Git Service

ToT
authoryamat0jp <yamat0jp@yahoo.co.jp>
Sat, 1 Sep 2018 09:45:57 +0000 (18:45 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Sat, 1 Sep 2018 09:45:57 +0000 (18:45 +0900)
bot.py

diff --git a/bot.py b/bot.py
index fcb903a..92505bd 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -15,7 +15,7 @@ from linebot.models import MessageEvent, TextMessage, TextSendMessage
 
 class WebHookHandler(tornado.web.RequestHandler):
     def get(self):
-        return 200
+        pass
     
     def post(self):
         signature = json.load(self.request.headers['X-Line-Signature'])
@@ -34,9 +34,7 @@ class WebHookHandler(tornado.web.RequestHandler):
                 TextSendMessage(text=event.message.text)
             )
 
-application = tornado.web.Application([(r'/callback',WebHookHandler),],{
-        #'debug':True
-        })
+application = tornado.web.Application([(r'/callback',WebHookHandler)])
 
 if __name__ == '__main__':
     ch_id = os.environ['Channel_ID']