From 60fea33c7b68eb46aa2d275d62a6441cfa0fbc4c Mon Sep 17 00:00:00 2001 From: Smith Date: Sun, 31 Jul 2022 21:13:08 +0200 Subject: [PATCH] improve azuredeploy.json * hopefully.. --- azuredeploy.json | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/azuredeploy.json b/azuredeploy.json index cb66186..f547408 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -4,9 +4,9 @@ "parameters": { "siteName": { "type": "string", - "defaultValue": "Game Server Watcher", + "defaultValue": "GameServerWatcher", "metadata": { - "description": "The name of the web app that you wish to create." + "description": "The name of the web app that you wish to create. (alphanumeric only!)" } }, "siteLocation": { @@ -31,6 +31,27 @@ "description": "Game server info refresh interval in minutes [DEPRECETED]" } }, + "discordBotToken": { + "type": "string", + "defaultValue": "-", + "metadata": { + "description": "Discord bot token" + } + }, + "telegramBotToken": { + "type": "string", + "defaultValue": "-", + "metadata": { + "description": "Telegram bot token" + } + }, + "steamWebApiKey": { + "type": "string", + "defaultValue": "-", + "metadata": { + "description": "Steam web API key" + } + }, "repoUrl": { "type": "string", "defaultValue": "https://github.com/a-sync/game-server-watcher.git", @@ -106,7 +127,12 @@ ], "properties": { "SECRET": "[parameters('secret')]", - "REFRESH_TIME_MINUTES": "[parameters('refreshTimeMinutes')]" + "REFRESH_TIME_MINUTES": "[parameters('refreshTimeMinutes')]", + "DISCORD_BOT_TOKEN": "[if(equals('-', parameters('discordBotToken')), '', parameters('discordBotToken'))]", + "TELEGRAM_BOT_TOKEN": "[if(equals('-', parameters('telegramBotToken')), '', parameters('telegramBotToken'))]", + "STEAM_WEB_API_KEY": "[if(equals('-', parameters('steamWebApiKey')), '', parameters('steamWebApiKey'))]", + "DATA_PATH": "./data/", + "DBG": "" } }, {