diff --git a/src/bot.js b/src/bot.js index dd804d1..b076dbc 100644 --- a/src/bot.js +++ b/src/bot.js @@ -33,6 +33,11 @@ config.whitelist = Object.keys( ).map((x) => +x); console.info(config); +if (!process.env.BOT_TOKEN) { + throw new Error( + "BOT_TOKEN not defined. Please, run docker container: docker run --env-file .env", + ); +} config.admins = Object.fromEntries(config.admins.map((x) => [x, true])); config.whitelist = Object.fromEntries(config.whitelist.map((x) => [x, true]));