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

19 lines
722 B
JavaScript

console.log('⏳ 开始发送微信消息');
$exec('python3 https://raw.githubusercontent.com/Oreomeow/VIP/main/Scripts/py/Wechat-Timed-Message.py', {
cwd: './script/Shell',
timeout: 0,
env: {
PUSH_KEY: $store.get('PUSH_KEY', 'string'),
PUSH_PLUS_TOKEN: $store.get('PUSH_PLUS_TOKEN', 'string'),
PUSH_PLUS_TOPIC: $store.get('PUSH_PLUS_TOPIC', 'string'),
TITLE: $store.get('TITLE', 'string'),
MSG: $store.get('MSG', 'string'),
IMAGE: $store.get('IMAGE', 'string'),
CONTENT: $store.get('CONTENT', 'string'),
QYWX_AM: $store.get('QYWX_APP', 'string'),
},
cb(data, error) {
error ? console.error(error) : console.log(data);
},
});