jlyons210 / discord-bot-ol-bootsie

Ol' Bootsie is a highly configurable Discord bot that interfaces with the OpenAI API, written for Node.js in Typescript.
The Unlicense
2 stars 2 forks source link

Clean up `DiscordBot.ts` and add unit tests #111

Closed jlyons210 closed 10 months ago

jlyons210 commented 1 year ago

I thought I did a decent job of refactoring this before. I was wrong - there are very lengthy functions that do more than one thing. It's also littered with long debug logging lines. I'd like to clean them up for readability, and eventually eliminate as many as I can with proper unit testing. That's for another day.

jlyons210 commented 10 months ago

This was too broad and I never really made progress, so I'm deleting the branch. I'll create more targeted issues for code cleanup.