Managing, Testing and Deployment of Discord Bot

I am relatively new to Discord.js and currently building a bot that incorporates ChatGPT. My goal is to host it on a platform like Heroku for continuous availability. However, I'm unsure about the best practices for testing new features without affecting the live bot. Here are my questions: How can I maintain a development environment for testing new features without impacting the main bot running on the cloud server? Is it advisable to have two separate bot instances—one for testing and one for the live version? If yes, how can I efficiently manage this process? Once I'm satisfied with a new feature, what is the recommended approach for deploying the updated code to the main bot on the cloud server? I appreciate any advice or best practices from more experienced Discord.js developers. Thank you!
3 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
treble/luna
treble/luna5mo ago
first of all, if you do want a proper host, dont use heroku, #resources has good hosts and i'd just have 2 bots, one for development, and one for your main
Fonzie
Fonzie5mo ago
Thank you so much I’ve been overcomplicating this for days but now I have a good foundation 😊