ddiomedi2906 / CC3201Bot

Discord Bot for supporting group work in courses.
1 stars 3 forks source link

Usage of config.json file #13

Open ddiomedi2906 opened 3 years ago

ddiomedi2906 commented 3 years ago

More context in #12.

Think of a better way to store elements of the guild's state (e.g. group states (open/close), help queue, invitations, other conf flags). The issue with having a single file for storing this information is that reading/writing can't be done on the file itself but we usually rely on the configuration the bot has in memory while running. This leads to unexpected loss of information due to not saving that guild state before restarting the bot.