Closed AleytiaFairlight closed 4 months ago
Yes, that's how the current system work for now since it need to send notifications via webhook.
I'm currently working on it so it can send notification using discord
if you have webhook disabled and discord enabled
Alright, I disabled discord and enabled webhooks, I'm getting the same error I believe Here is the config I'll just reset the webhook later
It seems that it still read the URL as the default config, not the new config.
Did you use default.config.js
or renamed it into config.js
?
ohh I created my own config.js
changing the name of or removing default.config..js
results in this error however
Renaming config.js
to default.config.js
results in the same error which is odd
Interesting, I've trying to replicate the error and no luck.
could you change and modify index.js
at line 21
to
let config;
try {
config = require("./config.js");
}
catch (e) {
console.log(e);
try {
config = require("./default.config.js");
}
catch (e) {
console.log(e);
throw new Error({ message: "No default or custom configuration found." });
}
}
as expected from the change here you go also did a fresh clone of the repo and same result
Sorry, did a few comment on my comment you'll need to add
let config;
try {
config = require("./config.js");
}
catch (e) { <-- this
console.log(e); <-- and this
try {
config = require("./default.config.js");
}
catch (e) { -- same as above
console.log(e);
throw new Error({ message: "No default or custom configuration found." });
}
}
I actually fixed the problem I apologize I was wondering why the checkin tag was not set in the config so I added it now however when I remove it it throws an error as there are no flags for honkai
now that's my fault for not checking it properly, current one is still checking whether dailiesCheck
or weekliesCheck
exist or not, you can copy this object and it should fixed it
{
cookie: {
ltoken: "",
ltuid: ""
},
dailiesCheck: false,
weekliesCheck: false,
stamina: {
check: false,
threshold: 150,
persistent: false
},
expedition: {
check: false,
persistent: false
}
}
alright no more errors apart frin this
but I fixed it by removing the second account
I am being asked for a webhook url even though webhooks are disabled in the config