https://discord.gg/botpress logo
Bot picks old token
# 💻developers
w
Hi Lijo, why do you not use env variables instead bot?
In this way you also have different values in studio and online bot
l
@white-nest-40686 - thank you it worked via env variables, but i never had this problem in the past, i tried changing the values, deleting the variable nothing works
.env works
w
happy to help you 😃
l
having said so, was there problem in save or caching in Botpress yesterday
w
It's good; however, tokens or API keys should be better saved in environment variables rather than in the code for security reasons. This way, you can change them from the dashboard without needing to publish the bot again.