BREAKING CHANGE: In `@revanced/discord-bot`, its environment variable
`DATABASE_URL` has been renamed to `DATABASE_PATH`
and the `file:` prefix is no longer needed
1.5 KiB
⚙️ Configuration
This page tells you how to configure the bot.
📄 JSON config
See config.ts.
config.owners
User IDs of the owners of the bot. Only add owners when needed.
config.guilds
Servers the bot is allowed to be and register commands in.
config.logLevel
The level of logs to print to console. If the level is more important or equally important to set level, it will be forwarded to the console.
The possible levels (sorted by their importance descendingly) are:
nonefatalerrorwarninfologdebug
config.api.url
WebSocket URL to connect to (including port). Soon auto-discovery will be implemented.
config.api.disconnectLimit
Amount of times to allow disconnecting before exiting with code 1.
config.messageScan
config.moderation
TBD.
config.rolePresets
TBD.
🟰 Environment variables
See .env.example.
You can set environment variables in your shell or use a .env file which Bun will automatically load.
DISCORD_TOKEN
The Discord bot token.
DATABASE_PATH
The database path.
Example values are: ./revanced.db, db.sqlite3, ../some/path/discord_bot.sqlite
⏭️ What's next
The next page will tell you how to configure auto-responses.
Continue: 🗣️ Adding auto-responses