discord title suffix for config

This commit is contained in:
2023-11-15 15:03:30 +00:00
parent 3a56b99e3d
commit 5bf081ee38
4 changed files with 10 additions and 0 deletions
+3
View File
@@ -49,6 +49,9 @@ begin {
if ( ! $botName) {
$botName = $DISCORD_SERVER_NAME
}
if ($title) {
$title = "$title $DISCORD_TITLE_SUFFIX"
}
}
# load internal function
+2
View File
@@ -2,6 +2,8 @@
$DISCORD_SERVER_NAME = "<YOUR_SERVER>"
$DISCORD_TITLE_SUFFIX = "$DISCORD_SERVER_NAME"
$DISCORD_WINDOWS_HOOK = "<WEBHOOK_URL_HERE>?wait=true"
$DYNV6_ZONE = "<YOUR_DOMAIN>"
+2
View File
@@ -25,5 +25,7 @@ SERVER_DOMAIN="localhost"
DISCORD_SERVER_NAME="<YOUR_SERVER>"
DISCORD_TITLE_SUFFIX="$DISCORD_SERVER_NAME"
DISCORD_GENERAL_HOOK="<WEBHOOK_URL_HERE>?wait=true"
+3
View File
@@ -90,6 +90,9 @@ if [[ -f "$configFile" ]]; then
if [[ -z "$hookUrl" ]]; then
hookUrl="$DISCORD_GENERAL_HOOK"
fi
if [[ -n "$title" ]]; then
title="$title $DISCORD_TITLE_SUFFIX"
fi
fi
# stop if we have no hook to send message to