OSDN Git Service

no message
authoryamat0jp <yamat0jp@yahoo.co.jp>
Wed, 5 Sep 2018 13:02:23 +0000 (22:02 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Wed, 5 Sep 2018 13:02:23 +0000 (22:02 +0900)
bot.py

diff --git a/bot.py b/bot.py
index 21b489c..eee99ed 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -25,10 +25,7 @@ class WebHookHandler(tornado.web.RequestHandler):
         t = now.hour
         w = now.weekday()
         if (w < 5)and(t >= 9)and(t < 16):
-            obj = {'type':'text','text':u'仕事中'}
-            j = json.dump(obj, ensure_ascii=False)
-            self.write(j)
-            return
+            return u'仕事中.'
         db = pymongo.MongoClient(uri)[ac]
         table = db['glove']
         item = table.find({'no':re.compile(no)})