-
-
Notifications
You must be signed in to change notification settings - Fork 168
/
env.example.js
104 lines (100 loc) · 2.92 KB
/
env.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
module.exports = Object.freeze({
/**
* ## 账号相关
* - `COOKIE` 是必填项
* - `NOTE` 帐号备注
* - `NUMBER` 表示是第几个账号
* - `CLEAR` 是否启用清理功能
* - `ACCOUNT_UA` 账号UA, 可在浏览器控制台输入 navigator.userAgent 查看
* ## 高级功能
* - `ENABLE_CHAT_CAPTCHA_OCR` 开启评论验证码识别 使用方法见README
* - `CHAT_CAPTCHA_OCR_URL` 验证码识别接口 POST `url`->`code`
* - `ENABLE_MULTIPLE_ACCOUNT` 是否启用多账号
* - `MULTIPLE_ACCOUNT_PARM` 多账号参数(JSON格式) <不推荐使用
* ## 调试相关
* - `LOTTERY_LOG_LEVEL` 输出日志等级 Error<Warn<Info<Debug 1<2<3<4
* - `NOT_GO_LOTTERY` 关闭抽奖行为
*
* ## 多账号
* 1. 将 ENABLE_MULTIPLE_ACCOUNT 的值改为true
* 2. 将账号信息依次填写于 multiple_account_parm 中, 参考例子类推
* - `WAIT` 表示下一个账号运行等待时间(毫秒)
*
* **按顺序依次执行, 防止访问频繁封禁IP**
*/
account_parm: {
COOKIE: '',
NOTE: '',
NUMBER: 1,
CLEAR: true,
ACCOUNT_UA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
ENABLE_CHAT_CAPTCHA_OCR: false,
CHAT_CAPTCHA_OCR_URL: 'http://127.0.0.1:9898/ocr/url/text',
ENABLE_MULTIPLE_ACCOUNT: false,
MULTIPLE_ACCOUNT_PARM: '',
LOTTERY_LOG_LEVEL: 3,
NOT_GO_LOTTERY: ''
},
/**
* 为防止环境变量过长, 请将多账号填在此处
* 以 **大括号内容** 为模板依次复制(包含大括号),逗号分割
*
* ```txt
* [
* {
* ...
* NUMBER: 1
* ...
* },
* {
* ...
* NUMBER: 2
* ...
* }
* ]
* ```
*/
multiple_account_parm: [
{
COOKIE: '',
NOTE: '',
NUMBER: 1,
CLEAR: true,
WAIT: 60 * 1000,
ACCOUNT_UA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'
}
],
/**
* 推送相关参数
*/
push_parm: {
SCKEY: '',
SENDKEY: '',
QQ_SKEY: '',
QQ_MODE: '',
BARK_PUSH: '',
BARK_SOUND: '',
PUSHDEER_URL: '',
PUSHDEER_PUSHKEY: '',
TG_BOT_TOKEN: '',
TG_USER_ID: '',
TG_PROXY_HOST: '',
TG_PROXY_PORT: '',
DD_BOT_TOKEN: '',
DD_BOT_SECRET: '',
QYWX_AM: '',
QYWX_KEY: '',
IGOT_PUSH_KEY: '',
PUSH_PLUS_TOKEN: '',
PUSH_PLUS_USER: '',
QMSG_KEY: '',
QMSG_QQ: '',
SMTP_HOST: '',
SMTP_PORT: '',
SMTP_USER: '',
SMTP_PASS: '',
SMTP_TO_USER: '',
GOTIFY_URL: '',
GOTIFY_APPKEY: ''
}
});