mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
1.2 KiB
1.2 KiB
Content.DiscordBot
Configuration (Debug)
DISCORD_TOKEN: Discord application token provided @https://discord.com/developers/applications/<APP_ID>/botDATABASE_STRING: Connection string to the database- For local development, you'll want it to be
Data Source=./bin/Content.Server/data/preferences.dbif you're using sqlite.
- For local development, you'll want it to be
DATABASE_CONTEXT: Default ispostgres. If testing locally with sqlite, usesqlite.GUILD: The Discord Server ID. DeltaV's discord is968983104247185448.- You can find this by turning Developer mode on in Discord, right-clicking on a server, and copying the server ID.
Configuration (Production)
Requires a link-config.json file in the working directory.
{
"Token": "DISCORD_BOT_TOKEN",
"DatabaseString": "DB_CONNECTION_STRING"
}
Here's a quick bash command to create it in your current working directory. Windows users will have to fend for themselves.
cat << EOF > link-config.json
{
"Token": "DISCORD_BOT_TOKEN",
"DatabaseString": "DB_CONNECTION_STRING"
}
EOF
You can also override Guild and DatabaseContext if you wanted to by including those JSON properties.