I'm programming my first Discord Bot and I already deployed it using Heroku and that's working as expected, for now on my personnal Discord server for my tests.
There is the code, it's very short (sorry if that's not well-coded, I'm beginer at this language). https://github.com/AudricCh/NewWorldServerStatus/blob/main/bot/main.py
But I've got some global variables which are modifiable by using commands, like
$lang EN
Which set some variables with the good translation.
I saw that if I change my code then deploy it, the language is reset because the variable value is lost.
What is the good way to save some data, specifically for each Discord server using the Bot ?
And are we agree that variables are linked to Discord Servers and are not global for all ones ?! Am I crazy thinking that ?
Thank you !