使用Node.Js模拟网页端自动定时登录Serv00、CT8的web面板,实现账号保活。
点仓库 Settings
→ Secrets and variables
→ Actions
→ New repository secret
变量名称 | 值 | 备注 |
---|---|---|
TG_CHAT_ID |
值为你的账号ID。可从 @userinfobot 获取。 | 可选,不填则无tg通知 |
TG_BOT_TOKEN |
值为BOT TOKEN,可从 @BotFather 创建。 | 可选,不填则无tg通知 |
LOGIN_INFO |
参考下面👇的json 。 | 必填 |
[
{"username": "登录名", "password": "密码", "login_url": "https://panel3.serv00.com"},
{"username": "登录名", "password": "密码", "login_url": "https://panel5.serv00.com"},
{"username": "登录名", "password": "密码", "login_url": "https://panel.ct8.pl"},
{"username": "登录名", "password": "密码", "login_url": "https://panel.ct8.pl"}
]
目前是每隔10天的13:00(下午1点)执行,如需修改时间,自行设置 .github\workflows\login.yml
文件中的
- cron: '0 13 */10 * *'