I want it to basically be like a webpage project where you can have a folder, and it will navigate to that folder based on the path that way I wouldnt have a giant file for all the apis. wondering how i can use fs.readdir
to do this.
Can you send some examples of which Discord command handler you use and we could tell you how to do something similar with express?
I personally dont use command handlers but i want to make something similar, where it reads all the folders, and it can hold the code for response and request.
This was a more advanced request but I’m glad you asked this because I might use this code in the future. https://glitch.com/edit/#!/express-route-handler
I’ll take a look, thanks
No problem. I hope you enjoy the code!