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:
7e8f4ed
)
no message
author
yamat0jp
<yamat0jp@yahoo.co.jp>
Wed, 5 Sep 2018 13:02:23 +0000
(22:02 +0900)
committer
yamat0jp
<yamat0jp@yahoo.co.jp>
Wed, 5 Sep 2018 13:02:23 +0000
(22:02 +0900)
bot.py
patch
|
blob
|
history
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)})