调度程序必须在执行时发送消息,但它不会延迟。。。怎么了
import os
import time
import schedule
from slackclient import SlackClient
BOT_NAME = "nagfhght"
SLACK_API_TOKEN = "xoxb-ghhghgghhfe"
BOT_ID = "hgfhfghfg"
sc = SlackClient(SLACK_API_TOKEN)
def send_message(text):
sc.api_call(
"chat.postMessage",
channel="#madchickens",
text=text
)
schedule.every().weekday.at("14:16").do(send_message, send_message("here time work"))
目前没有回答
相关问题 更多 >
编程相关推荐