This commit is contained in:
机器人总动员 2021-05-05 16:21:06 +08:00
parent bec8b109cf
commit 498463b00e
2 changed files with 110 additions and 109 deletions

View File

@ -2,11 +2,11 @@ from telegram.ext import Updater
from config import TOKEN
from func import start_handler, chat_content_handler, check_schedule
import schedule
import task
from task import do_task
import threading
# schedule.every().day.at('16:20').do(task).tag('task')
schedule.every(1).minutes.do(task).tag('task')
schedule.every(1).minutes.do(do_task).tag('task')
threading.Thread(target=check_schedule).start()

View File

@ -11,8 +11,9 @@ from config import TOKEN
bot = telegram.Bot(token=TOKEN)
r = connector.get_connection()
def do_task():
r = connector.get_connection()
key_list = r.keys()
group_list = []
for i in key_list: