1
0
mirror of https://github.com/Oreomeow/VIP.git synced 2026-02-03 18:43:22 +08:00
Files
vip/Scripts/js/FNplus.js
2022-03-09 20:43:36 +08:00

32 lines
1.8 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// @grant nodejs
console.log('⏳ 初始化安装推送模块中......');
$exec('wget https://raw.githubusercontent.com/whyour/qinglong/master/sample/notify.py -O notify.py', {
cwd: './script/Shell',
timeout: 0,
cb(data, error) {
error ? console.error(error) : console.log(data);
},
});
// 通知填写参考 https://raw.githubusercontent.com/whyour/qinglong/master/sample/config.sample.sh
console.log('⏳ 开始执行 FNplus.py');
$exec('python3 https://raw.githubusercontent.com/Oreomeow/freenom-py/main/FNplus.py', {
cwd: './script/Shell',
timeout: 0,
env: {
FN_ID: $store.get('FN_ID', 'string'), // Freenom 用户名
FN_PW: $store.get('FN_PW', 'string'), // Freenom 密码
BARK: $store.get('BARK', 'string'), // bark 服务,此参数如果以 http 或者 https 开头则判定为自建 bark 服务secrets 可填
PUSH_KEY: $store.get('PUSH_KEY', 'string'), // Server 酱的 PUSH_KEYsecrets 可填
TG_BOT_TOKEN: $store.get('TG_BOT_TOKEN', 'string'), // tg 机器人的 TG_BOT_TOKENsecrets 可填
TG_USER_ID: $store.get('TG_USER_ID', 'string'), // tg 机器人的 TG_USER_IDsecrets 可填
TG_PROXY_IP: $store.get('TG_PROXY_IP', 'string'), // tg 机器人的 TG_PROXY_IPsecrets 可填
TG_PROXY_PORT: $store.get('TG_PROXY_PORT', 'string'), // tg 机器人的 TG_PROXY_PORTsecrets 可填
DD_BOT_TOKEN: $store.get('DD_BOT_TOKEN', 'string'), // 钉钉机器人的 DD_BOT_TOKENsecrets 可填
DD_BOT_SECRET: $store.get('DD_BOT_SECRET', 'string'), // 钉钉机器人的 DD_BOT_SECRETsecrets 可填
QYWX_AM: $store.get('QYWX_AM', 'string'), // 企业微信应用的 QYWX_AMsecrets 可填 参考 http://note.youdao.com/s/HMiudGkb
},
cb(data, error) {
error ? console.error(error) : console.log(data);
},
});