I'm currently working on a NodeJS powered Messenger Chatbot, using Wit.ai and Firebase, hosted on Heroku. I've followed an udemy course to learn the basics about chatbots and I've made a decent chatbot imo.
But, as I'm adding new features, I don't really know how to correctly structure and organize my project. To be honest, I've currently have one big index.js file, of about 1 000 lines, because in the middle there is a giant Switch Case structure managing all of the intents a user can possibly have.
I'm also making nodejs modules with "exports.function" but it seems it's an old way to do and it doesn't solve my switch case problem.
Do you any suggestions to solve my structure issue ?
I've found this post suggesting some structures but I don't know if it can really fit a Chatbot project.
Thanks for you time, have a nice day.