diff --git a/firstrun.sh b/firstrun.sh new file mode 100644 index 0000000..f461744 --- /dev/null +++ b/firstrun.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# new Env("MIUI-Auto-Task 环境配置") +# cron 0 0 1 * * firstrun.sh + +echo "开始安装依赖" +pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /ql/data/repo/0-8-4_miui-auto-tasks_master/requirements.txt +echo "依赖已安装完毕" + +echo "开始首次执行" +task 0-8-4_miui-auto-tasks_master/miuitask.py +echo "首次执行完毕" +echo "请到 脚本管理 - 0-8-4_miui-auto-tasks_master - data - config.yml 中配置参数" diff --git a/miuitask.py b/miuitask.py index c557b1c..9009fb5 100644 --- a/miuitask.py +++ b/miuitask.py @@ -1,8 +1,6 @@ -""" -Date: 2023-11-13 20:29:19 -LastEditors: Night-stars-1 nujj1042633805@gmail.com -LastEditTime: 2023-11-13 20:29:58 -""" +# new Env("MIUI-Auto-Task") +# cron 30 8 * * * miuitask.py + import asyncio from utils.api.login import Login