π¦ Modules
Robo.js ain't just about powerβit's all about keeping things neat and tidy too. That's where modules come in. Picture a module like a mini-bot, all packed up inside your main bot. You've got commands and events, all hanging out together under one roof.
Using modules is totally up to you. If you prefer to keep things simple, that's okay too!
What's in a Module? πβ
In the land of Robo.js, modules are your go-to when you want to bundle commands and events into neat little subfolders. It's like having a bunch of mini-Robo bots living inside your main bot. You can create as many module folders as you want, and name 'em whatever you fancy. Though, it's a smart move to name them after the feature or function that the files inside represent.
Check out this nifty Robo.js file structure with modules:
src/
βββ modules/
βββ moderation/
| βββ commands/
| βββ events/
βββ fun/
βββ commands/
βββ events/