diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 9409259..89a0573 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -25,4 +25,12 @@ export async function setupEnv() { } catch (err) { console.log(err); } + if (!process.env.token) { + console.log("Bot token is not exist in the config file."); + process.exit(1); + } + if (!process.env.admin) { + console.log("Bot admin id is not not exist in the config file."); + process.exit(1); + } }