discord-bot

by xxczaki

Helm chartv0.35.81App 7bdcb0ab222756aec71b651c7459984317e42b45MITVerified publisher

🎵 Music bot for my private Discord server, powered by discord-player

About this chart

discord-bot

🎵 Music bot for my private Discord server, powered by discord-player

Homepage: https://github.com/xxczaki/discord-bot

Maintainers

NameEmailUrl
Antoni Kępińskihttps://github.com/xxczaki

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamiredis~28.3.16

Values

Bot

KeyTypeDefaultDescription
env.botDebugChannelIdstring""ID of the channel used for sending debug messages The server containing this channel is treated as the home server, whose owners can manage shared caches
env.clientIdstring""Client ID used for Discord API authorization
env.disabledCommandsstring""Comma-separated list of commands to disable (e.g. "lockdown,prompt") Disabled commands are not registered with Discord
env.enableYoutubestring""Enable YouTube for search and playback Set to "true" to enable YouTube extractor, leave empty for SoundCloud-only
env.guildsobject{}Servers allowed to use the bot, keyed by guild ID Each entry needs playlistsChannelId (channel storing the server's playlists) and can set ownerRoleId (role allowed to use owner-only commands like /lockdown, which are unavailable without it)
env.spotifyClientIdstring""Optional client ID for the Spotify API Used by https://github.com/iTsMaaT/discord-player-spotify
env.spotifyMarketstring"DE"Spotify market code (ISO 3166-1 alpha-2) for search results
persistentVolumeClaimobject{"accessModes":["ReadWriteOnce"],"size":"5Gi","storageClass":""}Configuration of the PVC used for storing the cached songs
secrets.mistralApiKeyobject{"key":"","name":""}Points to a Secret containing the Mistral API key Used for the /prompt command
secrets.sentryDsnobject{"key":"","name":""}Points to a Secret containing the Sentry DSN Learn more: https://docs.sentry.io/concepts/key-terms/dsn-explainer/
secrets.spotifyClientSecretobject{"key":"","name":""}Points to a Secret containing the Spotify API client secret Used by https://github.com/iTsMaaT/discord-player-spotify
secrets.tokenobject{"key":"","name":""}Points to a Secret containing the Discord bot token

Redis

KeyTypeDefaultDescription
redisobject{"architecture":"standalone","auth":{"enabled":false},"commonConfiguration":"# Enable AOF https://redis.io/topics/persistence#append-only-file\nappendonly yes\n# Disable RDB persistence, AOF persistence already enabled.\nsave \"\"","image":{"digest":"sha256:d75bda00b778ad5e03a639ec36e00f6665a5d7e0f35a6250be5b103fb2117275"}}General configuration of the Redis instance used for query caching and storing usage statistics

Service Account

KeyTypeDefaultDescription
serviceAccountobject{"annotations":{},"create":true,"name":""}Service account used by the bot Pod

Other Values

KeyTypeDefaultDescription
imageobject{"pullPolicy":"Always","repository":"ghcr.io/xxczaki/discord-bot","tag":"7bdcb0ab222756aec71b651c7459984317e42b45"}General configuration of the Redis instance used for query caching and storing usage statistics
livenessProbeobject{"initialDelaySeconds":10,"periodSeconds":10,"tcpSocket":{"port":8000}}Liveness probe used for the bot Pod
readinessProbeobject{"initialDelaySeconds":10,"periodSeconds":10,"tcpSocket":{"port":8000}}Readiness probe used for the bot Pod
resourcesobject{"limits":{"cpu":"400m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource limits used for the bot Pod
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Security context used for the bot Pod

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy discord-bot with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has discord-bot on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdiscord-bot is pinned at v0.35.81 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply