Compare commits

..

2 Commits

Author SHA1 Message Date
f0c77bed3c Add check of envirmoment 2025-10-15 07:33:56 +03:00
d5ca761aeb add cookies.txt to ignore 2025-10-15 07:16:37 +03:00
2 changed files with 7 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# cookies
cookies.txt

View File

@ -33,6 +33,11 @@ config.whitelist = Object.keys(
).map((x) => +x); ).map((x) => +x);
console.info(config); console.info(config);
if (!process.env.BOT_TOKEN) {
throw new Error(
"BOT_TOKEN not defined. Please, run docker container: docker run <params> <container> --env-file .env",
);
}
config.admins = Object.fromEntries(config.admins.map((x) => [x, true])); config.admins = Object.fromEntries(config.admins.map((x) => [x, true]));
config.whitelist = Object.fromEntries(config.whitelist.map((x) => [x, true])); config.whitelist = Object.fromEntries(config.whitelist.map((x) => [x, true]));