|
@@ -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"
|