Config
Bu içerik henüz dilinizde mevcut değil.
Your app needs a way to store constants and required variables for the framework to work.
A project should look like this:
Dizinsrc
Dizincommands/
- …
Dizinevents/
- …
Dizinplugins/
- …
- 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
1export const commands = './dist/commands'
We will pass this file so sern can start properly.
1import * as config from './config.js'2
3Sern.init(config)
Optional
events
Supply a directory for sern to register event modules
1export const events = "./dist/events"
tasks
Supply a directory for sern to register scheduled tasks
1export const tasks = "./dist/tasks"
defaultPrefix
Supply a prefix for sern to enable text commands.
1export const defaultPrefix = "?"
user defined
Feel free to supply any other constants / variables you may need.
1export const OWNERS = ['182326315813306368']