From 42826a191424771e8197578d9eac7aa74d1ce7f7 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 8 Dec 2021 19:12:54 +0100 Subject: [PATCH] Improved config --- src/gismo/appsettings.example.json | 30 ++++++++++++++++++++++++++++++ src/gismo/appsettings.json | 16 ---------------- 2 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 src/gismo/appsettings.example.json diff --git a/src/gismo/appsettings.example.json b/src/gismo/appsettings.example.json new file mode 100644 index 0000000..cdfe149 --- /dev/null +++ b/src/gismo/appsettings.example.json @@ -0,0 +1,30 @@ +{ + "TimeFormatSettings": { + "DateFormat": "%Y-%m-%d", + "TimeFormat": "%H:%M:%S", + "DateTimeFormat": "%Y-%m-%d %H:%M:%S.%f", + "DateTimeLogFormat": "%Y-%m-%d_%H-%M-%S" + }, + "LoggingSettings": { + "Path": "logs/", + "Filename": "log_$start_time.log", + "ConsoleLogLevel": "ERROR", + "FileLogLevel": "WARN" + }, + "Discord": { + "Token": "" + }, + "Bot": { + "Prefix": "!g", + "Servers": [ + { + "Id": "", + "LoginMessageChannelId": "", + "LoginMessage": "", + "MessageDeleteTimer": 0, + "WelcomeMessage": "", + "GoodbyeMessage": "" + } + ] + } +} \ No newline at end of file diff --git a/src/gismo/appsettings.json b/src/gismo/appsettings.json index cdfe149..a02074c 100644 --- a/src/gismo/appsettings.json +++ b/src/gismo/appsettings.json @@ -10,21 +10,5 @@ "Filename": "log_$start_time.log", "ConsoleLogLevel": "ERROR", "FileLogLevel": "WARN" - }, - "Discord": { - "Token": "" - }, - "Bot": { - "Prefix": "!g", - "Servers": [ - { - "Id": "", - "LoginMessageChannelId": "", - "LoginMessage": "", - "MessageDeleteTimer": 0, - "WelcomeMessage": "", - "GoodbyeMessage": "" - } - ] } } \ No newline at end of file