I was wondering how can I load the environment variables from a file using dotenv or any other package. This is because even though I load them before even requiring themicro-bot module, it won't let me:
μ-bot: Please supply Bot token
Is it possible to do this? I tried with the following code while having a .env file in the root directory with the BOT_TOKEN:
Hi,
I was wondering how can I load the environment variables from a file using
dotenv
or any other package. This is because even though I load them before even requiring themicro-bot
module, it won't let me:μ-bot: Please supply Bot token
Is it possible to do this? I tried with the following code while having a
.env
file in the root directory with theBOT_TOKEN
:Thanks.