From 93896f8a29149689f61b0bcb854beae94acc2973 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sat, 25 Apr 2020 23:51:34 +0100 Subject: [PATCH] new config values --- BSBshared/Json/JsonConfig.cs | 3 +++ BSBshared/Json/JsonConfigApi.cs | 9 +++++++++ CLI/Dockerfile-ForDebug | 3 +++ 3 files changed, 15 insertions(+) diff --git a/BSBshared/Json/JsonConfig.cs b/BSBshared/Json/JsonConfig.cs index 613070e..fd1726e 100644 --- a/BSBshared/Json/JsonConfig.cs +++ b/BSBshared/Json/JsonConfig.cs @@ -25,6 +25,9 @@ namespace BetterSecondBotShared.Json public ulong DiscordServerID { get; set; } public int DiscordServerImHistoryHours { get; set; } public string DefaultSitUUID { get; set; } + public bool CommandsToConsole { get; set; } + public int MaxCommandHistory { get; set; } + public string RelayImToAvatar { get; set; } } } diff --git a/BSBshared/Json/JsonConfigApi.cs b/BSBshared/Json/JsonConfigApi.cs index 2e058bc..4a6ae3f 100644 --- a/BSBshared/Json/JsonConfigApi.cs +++ b/BSBshared/Json/JsonConfigApi.cs @@ -34,6 +34,9 @@ namespace BetterSecondBotShared.Json case "discordclienttoken": { return "DiscordFull"; } case "discordserverid": { return "DiscordFull"; } case "discordserverimhistoryhours": { return "DiscordFull"; } + case "commandstoconsole": { return "Options"; } + case "maxcommandhistory": { return "Options"; } + case "relayimtoavatar": { return "Options"; } default: { return "Unknown"; } } } @@ -61,6 +64,9 @@ namespace BetterSecondBotShared.Json case "discordclienttoken": { return "What is the bots client token"; } case "discordserverid": { return "What is the Discord server id we should be using"; } case "discordserverimhistoryhours": { return "How long to keep history messages in Group/IM chats in hours"; } + case "commandstoconsole": { return "Should the bot log commands to the console window"; } + case "maxcommandhistory": { return "How many commands should the bots command history be"; } + case "relayimtoavatar": { return "The UUID to relay avatar IMs to [Any invaild UUID to disable like \"none\"]"; } default: { return "None given"; } } } @@ -107,6 +113,9 @@ namespace BetterSecondBotShared.Json case "discordserverid": { return new[] { "1234567890" }; } case "discordserverimhistoryhours": { return new[] { "24" }; } case "defaultsituuid": { return new[] { "\"" + OpenMetaverse.UUID.Zero + "\"" }; } + case "commandstoconsole": { return new[] { "False" }; } + case "maxcommandhistory": { return new[] { "250" }; } + case "relayimtoavatar": { return new[] { "\"" + OpenMetaverse.UUID.Zero + "\"" }; } default: { return new string[] { }; } } } diff --git a/CLI/Dockerfile-ForDebug b/CLI/Dockerfile-ForDebug index c09c4a7..55328c5 100644 --- a/CLI/Dockerfile-ForDebug +++ b/CLI/Dockerfile-ForDebug @@ -43,6 +43,9 @@ ENV DiscordClientToken='' ENV DiscordServerID='' ENV DiscordServerImHistoryHours='' ENV DefaultSitUUID='00000000-0000-0000-0000-000000000000' +ENV CommandsToConsole='False' +ENV MaxCommandHistory='250' +ENV RelayImToAvatar='00000000-0000-0000-0000-000000000000' EXPOSE 8080 ENV ASPNETCORE_URLS http://+:8080