From 2ae0a99783dd4b00c244e13a3e4d9699ba501d3c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 8 Dec 2021 19:11:36 +0100 Subject: [PATCH] build and improved config --- src/gismo/appsettings.json | 19 +++++++++++++++++-- src/gismo/gismo.json | 4 +++- src/modules/base/__init__.py | 24 ++++++++++++++++++++++++ src/modules/database/__init__.py | 24 ++++++++++++++++++++++++ 4 files changed, 68 insertions(+), 3 deletions(-) diff --git a/src/gismo/appsettings.json b/src/gismo/appsettings.json index 629e6eb..cdfe149 100644 --- a/src/gismo/appsettings.json +++ b/src/gismo/appsettings.json @@ -5,11 +5,26 @@ "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/gismo.json b/src/gismo/gismo.json index 48efbc3..81c9765 100644 --- a/src/gismo/gismo.json +++ b/src/gismo/gismo.json @@ -48,7 +48,9 @@ "../gismo_core/gismo-core.json", "../gismo_data/gismo-data.json", "../modules_core/modules-core.json", - "../modules/boot_log/boot-log.json" + "../modules/boot_log/boot-log.json", + "../modules/base/base.json", + "../modules/database/database.json" ] } } \ No newline at end of file diff --git a/src/modules/base/__init__.py b/src/modules/base/__init__.py index ad5eca3..307aa80 100644 --- a/src/modules/base/__init__.py +++ b/src/modules/base/__init__.py @@ -1 +1,25 @@ +# -*- coding: utf-8 -*- + +""" +gismo sh-edraft Gismo +~~~~~~~~~~~~~~~~~~~ + +sh-edraft Dicord bot Gismo + +:copyright: (c) 2021 - 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.base' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' +__version__ = '0.3.0' + +from collections import namedtuple + # imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='0', minor='3', micro='0') diff --git a/src/modules/database/__init__.py b/src/modules/database/__init__.py index ad5eca3..3e9733f 100644 --- a/src/modules/database/__init__.py +++ b/src/modules/database/__init__.py @@ -1 +1,25 @@ +# -*- coding: utf-8 -*- + +""" +gismo sh-edraft Gismo +~~~~~~~~~~~~~~~~~~~ + +sh-edraft Dicord bot Gismo + +:copyright: (c) 2021 - 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.database' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' +__version__ = '0.3.0' + +from collections import namedtuple + # imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='0', minor='3', micro='0')