Config
Esta página aún no está disponible en tu idioma.
Your app needs a way to store constants and required variables for the framework to work.
A project should look like this:
Directorysrc
Directorycommands/
- …
Directoryevents/
- …
Directoryplugins/
- …
- index.js
- config.js we are here
- .env
- .gitignore
- bun.lockb
- package.json
- README.md
- sern.config.json
- jsconfig.json # tsconfig.json if you are using typescript
Required
commands
We will pass this file so sern can start properly.
Optional
events
Supply a directory for sern to register event modules
tasks
Supply a directory for sern to register scheduled tasks
defaultPrefix
Supply a prefix for sern to enable text commands.
user defined
Feel free to supply any other constants / variables you may need.