Open 500-internal-server-error opened 1 year ago
An alternative database is fine, as long as it's persistent, i.e., session data is not lost should the bot crash / be shut down for whatever reason.
Right, then I'll get started on this find someone to assign this to.
Use a Redis db as a buffer for completed sessions.
Gw saranin langsung pake Prisma + Supabase/Neon aja
Currently, the bot uses a plain array to store session data. This makes the sessions "database" ephemeral and prone to disruptions (e.g., if the bot crashses while in the middle of a session, that session data is lost, as if the session was never started).
One solution would be to make use of sqlite as a more permanent database, allowing sessions to be resumed should they be interrupted for whatever reason. While it has never happened before as of the writing of this issue, it is a good precaution to take.