[REFACTOR]
I’m refactoring my RanDK Bot to break apart that giant, messy index.js file from the default tutorial.
Cramming the bot config, external API calls, and individual commands into one place made the code a total headache to expand and super easy to accidentally break.
I split everything into dedicated folders for configs, services, and controllers, turning the main file into a clean switchboard that just links them together.
Now, if one command goes down, the rest of the bot stays online 24/7 on Nest, making it way easier to safely add fun new features in the future.
P.S. The bot is live on the server! Feel free to try it in HackClub Slack
- /rdk-ping
- /rdk-joke
- /rdk-catfact
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.