fix(discordgsm) activity type | Whitelist Guilds (#5036)

This commit is contained in:
Xstar97
2022-12-02 00:31:09 +02:00
committed by GitHub
parent b32911ee1b
commit a7af5b04c0
5 changed files with 38 additions and 37 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ name: discordgsm
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/discordgsm - https://github.com/truecharts/charts/tree/master/charts/incubator/discordgsm
- https://github.com/DiscordGSM/GameServerMonitor - https://github.com/DiscordGSM/GameServerMonitor
version: 0.0.4 version: 0.0.5
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- monitor - monitor
@@ -1,7 +1,7 @@
# Installation Notes # Installation Notes
- Set `App Token` to your discord bot token. Here's a basic guide from [discordGSM](https://discordgsm.com/guide/how-to-get-a-discord-bot-token). - Set `App Token` to your discord bot token. Here's a basic guide from [discordGSM](https://discordgsm.com/guide/how-to-get-a-discord-bot-token).
- Set `Whitelist Guilds` to the server guild Ids if adding multiple Ids separate with `;`. - Add your discord server's ID to the `Whitelist Guilds` list, single ID per box.
Add your discord bot if you haven't done so and run initial commands to get started with discordGSM. Add your discord bot if you haven't done so and run initial commands to get started with discordGSM.
+4 -2
View File
@@ -46,12 +46,14 @@ questions:
enum: enum:
- value: "0" - value: "0"
description: Playing description: Playing
- value: "1"
description: Streaming
- value: "2" - value: "2"
description: Listening description: Listening
- value: "3" - value: "3"
description: Watching description: Watching
- value: "5" - value: "5"
description: Playing description: Competing
- variable: app_activity_name - variable: app_activity_name
label: App Activity Name label: App Activity Name
description: Presence activity name override. description: Presence activity name override.
@@ -59,7 +61,7 @@ questions:
type: string type: string
default: "" default: ""
- variable: app_presence_advertise - variable: app_presence_advertise
label: App Presense Advertise label: App Presence Advertise
description: Enable advertisement feature on presence description: Enable advertisement feature on presence
schema: schema:
type: boolean type: boolean
@@ -17,7 +17,7 @@ stringData:
DB_CONNECTION: {{ print "postgres" }} DB_CONNECTION: {{ print "postgres" }}
APP_TOKEN: {{ .Values.gsm.app_token | quote }} APP_TOKEN: {{ .Values.gsm.app_token | quote }}
{{- with .Values.gsm.whitelist_guilds }} {{- with .Values.gsm.whitelist_guilds }}
WHITELIST_GUILDS: {{ join ";" . }} WHITELIST_GUILDS: {{ join ";" . | quote }}
{{- end }} {{- end }}
APP_ACTIVITY_TYPE: {{ .Values.gsm.app_activity_type | quote }} APP_ACTIVITY_TYPE: {{ .Values.gsm.app_activity_type | quote }}
{{- with .Values.gsm.app_activity_name }} {{- with .Values.gsm.app_activity_name }}
-1
View File
@@ -27,7 +27,6 @@ gsm:
workers: 2 workers: 2
timeout: 90 timeout: 90
# Bot Config # Bot Config
# Fake Token for CI
app_token: "" app_token: ""
whitelist_guilds: [] whitelist_guilds: []
app_activity_type: 3 app_activity_type: 3