Delta-v/Content.DiscordBot
Vanessa 097d8282c8 Removed references to DeltaV so our downstreams will like us more. 2026-06-08 13:56:29 -05:00
..
Modules Discord Bot changes. Made it only a slash command. Might do more, but probably good enough. 2026-06-08 12:35:36 -05:00
CommandHandler.cs Removed references to DeltaV so our downstreams will like us more. 2026-06-08 13:56:29 -05:00
Config.cs Discord Bot changes. Made it only a slash command. Might do more, but probably good enough. 2026-06-08 12:35:36 -05:00
Content.DiscordBot.csproj Added documenation and improved discord bot for local development. Parameterized guild and context. 2026-06-08 10:11:08 -05:00
Logger.cs Make patron tiers auto refresh 2026-06-07 17:31:19 -05:00
Program.cs Discord Bot changes. Made it only a slash command. Might do more, but probably good enough. 2026-06-08 12:35:36 -05:00
README.md Discord Bot changes. Made it only a slash command. Might do more, but probably good enough. 2026-06-08 12:35:36 -05:00

README.md

Content.DiscordBot

Configuration (Debug)

  • DISCORD_TOKEN: Discord application token provided @ https://discord.com/developers/applications/<APP_ID>/bot
  • DATABASE_STRING: Connection string to the database
    • For local development, you'll want it to be Data Source=./bin/Content.Server/data/preferences.db if you're using sqlite.
  • DATABASE_CONTEXT: Default is postgres. If testing locally with sqlite, use sqlite.
  • GUILD: The Discord Server ID. DeltaV's discord is 968983104247185448.
    • 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.