You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written this bot before I started working as an engineer, so a lot of how it's structured is honestly pretty awful. In order to get it into good shape I would need to do the following:
Refactor it using OOP. global variables are awful, so having a class that represents the bot, has these global variables as members and could be passed with simple arguments makes the most sense to me.
Delete prototype functions and make the code more clear. There is a lot of unused code around (like the concept of thumbnail channel, that is no longer used) that should need to be cleaned out for legibility's sake.
Modularize it in multiple files. A lot of this stuff makes sense to put into their module/file, like all of the interactions involving Backblaze.
Take the config options such as the channels being used into the config env file, to make it easier to set up for other people.
These probably make sense to tackle on its own PRs, so maybe I will be separating these into its own issues.
The text was updated successfully, but these errors were encountered:
I have written this bot before I started working as an engineer, so a lot of how it's structured is honestly pretty awful. In order to get it into good shape I would need to do the following:
These probably make sense to tackle on its own PRs, so maybe I will be separating these into its own issues.
The text was updated successfully, but these errors were encountered: