discordIRCd
discordIRCd copied to clipboard
Organize the code in modules instead of one big file.
Currently everything lives in one big file with just a little abstraction. This makes maintenance a bit of a pain and contributions also less likely.
It would probably be beneficial to split out the code in several components. Something along the lines of:
start.jswould be responsible fordiscord.jswould be responsible for the discord connection side of things.irc-server.jswould contain the connection functionality for the server.utils.jswould be the home of all the functions responsible for parsing data. Like these lines here and a lot of functionality that now happens directly in the event handlers themselves.
It would be no small task, but it has been on my mind for a while so I might as well make an issue for it.
On it! https://github.com/RodrigoLeiteF/discordIRCd
Gonna open a PR soon for discussions, but it's still in the early stages.
Awesome! Looking forward to the PR