Explorar o código

notifytest:顯示三個關鍵字

zooeytsai %!s(int64=2) %!d(string=hai) anos
pai
achega
be21f7f079
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      INNNews/notifytest.py

+ 4 - 1
INNNews/notifytest.py

@@ -18,6 +18,8 @@ import time
 import rpyc
 import sys
 import docker
+import pymysql
+pymysql.install_as_MySQLdb()
 
 headers = {
         "Authorization": "Bearer " + "zsaS4I79fkbun9LLF8mQmeHL4PlEtBtN7OLzTp8m72Y",
@@ -37,9 +39,10 @@ idx=0
 for c in cursor:
     idx+=1
     if idx<=3:
-        elmt=c['kw'].split(' ')[0]
+        elmt=c['kw']
         result+="["+str(c['ranking'])+"]:"+elmt+"\n"
 
 msg="\n機器人執行次數:"+str(idx)
 send_msg(msg+result)
 
+# schtasks /create /sc minute /mo 10 /st 09:00 /et 23:00 /tn "linebat" /tr "C:\tmp\inn_line.bat"