forked from torikushiii/hoyolab-auto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.config.json5
More file actions
226 lines (226 loc) · 10.4 KB
/
Copy pathdefault.config.json5
File metadata and controls
226 lines (226 loc) · 10.4 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
loglevel: 'info',
userAgent: 'Custom fork of HoyoLabAuto: github.com/torikushiii/hoyolab-auto',
retry: {
attempts: 0, // Number of retries for API calls (0 disables retries)
delayMs: 1000, // Time between retries in milliseconds
timeoutMs: 30000, // API timeout in milliseconds
},
// Test notification settings
testNotification: {
enabled: false, // Set to false if you don't want to receive test notifications on startup
},
platforms: [
{
id: 1,
active: false, // Set to true if you want to receive notifications and issue commands through a bot
type: 'discord', // This platform is optional, only use this if you have want to access commands via Discord bot
botId: '123', // Your Discord bot ID
token: '(YOUR_DISCORD_BOT_TOKEN)',
},
{
id: 2,
active: false, // Set to true if you want to enable a Telegram bot to receive notifications and issue commands
type: 'telegram',
chatId: 123, // You can follow this guide to create a bot: https://github.com/torikushiii/hoyolab-auto/blob/main/setup/TELEGRAM.md
token: '(YOUR_TELEGRAM_BOT_TOKEN)',
disableNotification: false, // Set to true if you want to disable notification for Telegram bot (sounds, vibration, etc.)
},
{
id: 3,
active: false, // Set to true if you want to receive notifications from a Discord webhook
type: 'webhook',
url: '(YOUR_WEBHOOK_URL)', // You can follow this guide to create a webhook: https://github.com/torikushiii/hoyolab-auto/blob/main/setup/DISCORD_WEBHOOK.md
},
],
crons: {
whitelist: [], // You can whitelist some crons if you only want to run specific crons
blacklist: [], // You can blacklist some crons if you don't want to run them
// You can use this site to generate cron expression: https://crontab.guru/
checkIn: '0 0 0 * * *',
codeRedeem: '*/15 * * * *',
expedition: '0 */30 * * * *',
mimo: '0 0 */6 * * *',
mimoJitter: 0, // Random delay in seconds before running Mimo (0-N). Helps avoid rate limits at reset time.
hilichurl: '0 0 11 * * *', // 11:00 AM local time (adjust for your timezone if event resets at a different time)
hilichurlJitter: 0, // Random delay in seconds before running Hilichurl Workshop (0-N).
missedCheckIn: '0 0 23 * * *',
realmCurrency: '0 */1 * * *',
shopStatus: '0 */1 * * *',
stamina: '0 */30 * * * *'
},
accounts: [
{
id: 1,
active: false, // Set to true if you want to enable Honkai Impact 3rd
type: 'honkai',
data: [
{
cookie: '',
},
],
},
{
id: 2,
active: false, // Set to true if you want to enable Tears of Themis
type: 'termis',
data: [
{
cookie: ''
}
]
},
{
id: 3,
active: false, // Set to true if you want to enable Genshin Impact
type: 'genshin',
data: [
{
cookie: '',
// Enable this if you want to automatically redeem codes
// Please note that if you have one account with characters in multiple servers
// the code will be redeemed but you won't get the reward
// so please be careful when enabling this, and only enable it on the account that you want to redeem the code
redeemCode: false,
dailiesCheck: true, // Enable this if you want to get reminded to do your daily commissions
weekliesCheck: true, // Enable this if you want to get reminded to do your weeklies
realm: {
check: false,
persistent: false,
},
stamina: {
check: false, // Enable this if you want to get notified when your stamina is above the threshold
threshold: 0, // Your stamina threshold, only fires notification when your stamina is above this value
persistent: false, // Set to true if you want to get notified every time your stamina is above the threshold
},
expedition: {
check: false, // Enable this if you want to get notified when your expedition is done
persistent: false, // Set to true if you want to get notified every time your expedition is done
},
mimo: {
check: false, // NOT CURRENTLY SUPPORTED - Genshin uses a different API structure
},
hilichurl: {
check: false, // Enable to auto-complete Hilichurl Machine Workshop tasks and exchange for Primogems
redeem: true, // Auto-redeem primogem codes obtained from exchange
},
discord: {
// Your Discord user ID to ping you when to do your dailies/weeklies (will only work if discord bot / webhook is configured)
// or when your stamina is above the threshold and your expedition is done
// this is optional, you can leave it as null if you don't want to get pinged
// Make sure your Discord user ID is between single quotes such as ''
// e.g userId: '123456789'
userId: null,
}
},
],
},
{
id: 4,
active: false, // Set to true if you want to enable Honkai: Star Rail
type: 'starrail',
data: [
// If you have same account for both genshin and starrail
// You can copy the cookie values from the genshin account
// Same goes for any other game that will be supported in the future
// Support multi-account for every type of game
// Just add another object inside the data array
// Account #1
{
cookie: '',
redeemCode: false,
dailiesCheck: false,
weekliesCheck: false,
stamina: {
check: false,
threshold: 0,
persistent: false,
},
expedition: {
check: false,
persistent: false,
},
mimo: {
check: false,
redeem: true,
lottery: false,
reservePoints: 0,
redeemDraw: true,
},
discord: {
// Your Discord user ID to ping you when to do your dailies/weeklies (will only work if discord bot / webhook is configured)
// or when your stamina is above the threshold and your expedition is done
// this is optional, you can leave it as null if you don't want to get pinged
// Make sure your Discord user ID is between single quotes such as ''
// e.g userId: '123456789'
userId: null,
}
},
// Account #2
// Delete this if you only have one account
{
cookie: '',
dailiesCheck: false,
weekliesCheck: false,
stamina: {
check: false,
threshold: 0,
persistent: false,
},
expedition: {
check: false,
persistent: false,
},
mimo: {
check: false,
redeem: true,
lottery: false,
reservePoints: 0,
redeemDraw: true,
},
discord: {
// Your Discord user ID to ping you when to do your dailies/weeklies (will only work if discord bot / webhook is configured)
// or when your stamina is above the threshold and your expedition is done
// this is optional, you can leave it as null if you don't want to get pinged
// Make sure your Discord user ID is between single quotes such as ''
// e.g userId: '123456789'
userId: null,
}
},
],
},
{
id: 5,
active: false,
type: 'zenless',
data: [
{
cookie: '',
redeemCode: false,
shopStatus: false, // This will check if your shop has finished selling videos
dailiesCheck: false,
mimo: {
check: false,
redeem: true,
lottery: false,
reservePoints: 0,
redeemDraw: true,
},
stamina: {
check: false,
threshold: 0,
persistent: false,
},
discord: {
// Your Discord user ID to ping you when to do your dailies/weeklies (will only work if discord bot / webhook is configured)
// or when your stamina is above the threshold and your expedition is done
// this is optional, you can leave it as null if you don't want to get pinged
// Make sure your Discord user ID is between single quotes such as ''
// e.g userId: '123456789'
userId: null,
}
},
],
},
],
}