fix(discordgsm) activity type | Whitelist Guilds (#5036)
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,32 +1,32 @@
|
|||||||
{{/* Define the secret */}}
|
{{/* Define the secret */}}
|
||||||
{{- define "gsm.secret" -}}
|
{{- define "gsm.secret" -}}
|
||||||
|
|
||||||
{{- $secretName := printf "%s-gsm-secret" (include "tc.common.names.fullname" .) }}
|
{{- $secretName := printf "%s-gsm-secret" (include "tc.common.names.fullname" .) }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $secretName }}
|
name: {{ $secretName }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "tc.common.labels" . | nindent 4 }}
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
stringData:
|
stringData:
|
||||||
DATABASE_URL: {{ .Values.postgresql.url.complete | trimAll "\"" }}
|
DATABASE_URL: {{ .Values.postgresql.url.complete | trimAll "\"" }}
|
||||||
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 }}
|
||||||
APP_ACTIVITY_NAME: {{ . | quote }}
|
APP_ACTIVITY_NAME: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
APP_PRESENCE_ADVERTISE: {{ .Values.gsm.app_presence_advertise | quote }}
|
APP_PRESENCE_ADVERTISE: {{ .Values.gsm.app_presence_advertise | quote }}
|
||||||
POSTGRES_SSL_MODE: {{ .Values.gsm.postgres_ssl_mode | quote }}
|
POSTGRES_SSL_MODE: {{ .Values.gsm.postgres_ssl_mode | quote }}
|
||||||
TASK_QUERY_SERVER: {{ .Values.gsm.task_query_server | quote }}
|
TASK_QUERY_SERVER: {{ .Values.gsm.task_query_server | quote }}
|
||||||
COMMAND_QUERY_PUBLIC: {{ .Values.gsm.command_query_public | quote }}
|
COMMAND_QUERY_PUBLIC: {{ .Values.gsm.command_query_public | quote }}
|
||||||
COMMAND_QUERY_COOLDOWN: {{ .Values.gsm.command_query_cooldown | quote }}
|
COMMAND_QUERY_COOLDOWN: {{ .Values.gsm.command_query_cooldown | quote }}
|
||||||
WEB_API_ENABLE: {{ .Values.gsm.web_api_enable | quote }}
|
WEB_API_ENABLE: {{ .Values.gsm.web_api_enable | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user