mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
const default_script = {
|
|
version: '|version: 3.8.2|in nodejs',
|
|
author: '@shanmite',
|
|
UIDs: [
|
|
15363359,
|
|
31252386,
|
|
80158015,
|
|
35719643,
|
|
223748830,
|
|
689277291
|
|
],
|
|
TAGs: [
|
|
'互动抽奖',
|
|
'抽奖',
|
|
'转发抽奖',
|
|
'动态抽奖',
|
|
]
|
|
};
|
|
|
|
/**
|
|
* 自己修改过的设置
|
|
*/
|
|
const my_config = (() => {
|
|
let _my_config = {}
|
|
if (process.env.LOCALLAUNCH) {
|
|
try {
|
|
const { UIDs, TAGs } = require('../my_config.json');
|
|
if (UIDs) _my_config.UIDs = UIDs;
|
|
if (TAGs) _my_config.TAGs = TAGs;
|
|
} catch (_) {
|
|
console.log("无自定义设置");
|
|
}
|
|
} else {
|
|
try {
|
|
const { UIDs, TAGs } = JSON.parse(process.env.MY_CONFIG);
|
|
if (UIDs) _my_config.UIDs = UIDs;
|
|
if (TAGs) _my_config.TAGs = TAGs;
|
|
} catch (_) {
|
|
console.log("MY_CONFIG语法错误");
|
|
}
|
|
}
|
|
return _my_config;
|
|
})();
|
|
|
|
const script = {
|
|
...default_script,
|
|
...my_config
|
|
}
|
|
|
|
|
|
module.exports = script;
|