OSDN Git Service

臨時
authoryamat0jp <yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 10:31:44 +0000 (19:31 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Tue, 11 Sep 2018 10:31:44 +0000 (19:31 +0900)
bot.py

diff --git a/bot.py b/bot.py
index a8dfecd..80cf8de 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -29,7 +29,8 @@ class WebHookHandler(tornado.web.RequestHandler):
         w = now.weekday()
         if (w < 5)and(t >= 9)and(t < 16):
             return u'仕事中.'
-        table = self.users(self.name)
+        #table = self.users(self.name)
+        table = pymongo.MongoClient(uri)[ac]['glove']
         item = table.find({'no':re.compile(no,re.IGNORECASE)})
         if item.count() == 1:
             x = item[0]