botwave icon indicating copy to clipboard operation
botwave copied to clipboard

To the future me, rewrite the core of all components

Open douxxtech opened this issue 4 months ago • 0 comments

It's gotten to a point where adding features is really annoying. In server.py, local.py, and client.py, everything is dropped into a single BotWave* class without any particular order. As a result, those files are close to 2000 lines of messy code. The shared/ modules help, but there's no good place for the internal core logic. The server/, local/, and client/ folders exist for a reason, but each still contains just a single code file.

It would be nice to have a better system for spreading logic across different files for different tasks (e.g., a command, a handler, etc.) within those folders, with the entry file simply gluing everything together. I'm thinking of a plugin/extension-style architecture, similar to how Discord bot frameworks split functionality into "cogs" (couldn't find a better example, sorry!)

douxxtech avatar Aug 02 '26 16:08 douxxtech