From 255dabc90de73a7d206e33ee625eabf7f1dd7572 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 17 Jul 2022 12:48:41 +0200 Subject: [PATCH] Build project --- cpl-workspace.json | 4 +++ src/bot/bot.json | 9 ++++++- src/bot_core/__init__.py | 4 +-- src/bot_core/abc/__init__.py | 26 +++++++++++++++++++ src/bot_core/configuration/__init__.py | 26 +++++++++++++++++++ src/bot_core/service/__init__.py | 26 +++++++++++++++++++ src/bot_data/__init__.py | 4 +-- src/bot_data/abc/__init__.py | 4 +-- src/bot_data/migration/__init__.py | 4 +-- src/bot_data/model/__init__.py | 4 +-- src/bot_data/service/__init__.py | 4 +-- src/modules/base/__init__.py | 25 ++++++++++++++++++ src/modules/base/abc/__init__.py | 26 +++++++++++++++++++ src/modules/base/command/__init__.py | 15 ++++++----- src/modules/base/configuration/__init__.py | 26 +++++++++++++++++++ src/modules/base/events/__init__.py | 26 +++++++++++++++++++ src/modules/base/service/__init__.py | 25 ++++++++++++++++++ src/modules/boot_log/__init__.py | 25 ++++++++++++++++++ .../boot_log/configuration/__init__.py | 26 +++++++++++++++++++ src/modules/database/__init__.py | 25 ++++++++++++++++++ src/modules/permission/__init__.py | 25 ++++++++++++++++++ src/modules/permission/abc/__init__.py | 13 +++++----- .../permission/configuration/__init__.py | 13 +++++----- src/modules/permission/events/__init__.py | 26 +++++++++++++++++++ src/modules/permission/service/__init__.py | 13 +++++----- 25 files changed, 386 insertions(+), 38 deletions(-) diff --git a/cpl-workspace.json b/cpl-workspace.json index a3bcd22a4a..4929948b95 100644 --- a/cpl-workspace.json +++ b/cpl-workspace.json @@ -11,6 +11,10 @@ "boot-log": "src/modules/boot_log/boot-log.json" }, "Scripts": { + "prod": "export KDB_ENVIRONMENT=production; export KDB_NAME=kdb-dev; cpl start;", + "stage": "export KDB_ENVIRONMENT=staging; export KDB_NAME=kdb-dev; cpl start;", + "dev": "export KDB_ENVIRONMENT=development; export KDB_NAME=kdb-dev; cpl start;", + "ba": "cpl build-all", "build-all": "cpl build-bot; cpl build-bot-core; cpl build-bot-data;", "build-bot": "echo 'Build bot'; cd ./src/bot; cpl build; cd ../../;", diff --git a/src/bot/bot.json b/src/bot/bot.json index d3b020d7c7..33c27d52a7 100644 --- a/src/bot/bot.json +++ b/src/bot/bot.json @@ -44,6 +44,13 @@ "*/tests" ], "PackageData": {}, - "ProjectReferences": [] + "ProjectReferences": [ + "../bot_core/bot-core.json", + "../bot_data/bot-data.json", + "../modules/base/base.json", + "../modules/boot_log/boot-log.json", + "../modules/database/database.json", + "../modules/permission/permission.json" + ] } } \ No newline at end of file diff --git a/src/bot_core/__init__.py b/src/bot_core/__init__.py index f6886d3f5b..ad278208b6 100644 --- a/src/bot_core/__init__.py +++ b/src/bot_core/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -bot-core Keksdose bot - core +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -Discord bot for the Keksdose discord Server - core package +Discord bot for the Keksdose discord Server :copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. diff --git a/src/bot_core/abc/__init__.py b/src/bot_core/abc/__init__.py index e69de29bb2..27ad201312 100644 --- a/src/bot_core/abc/__init__.py +++ b/src/bot_core/abc/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'bot_core.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/bot_core/configuration/__init__.py b/src/bot_core/configuration/__init__.py index e69de29bb2..8776de6bf9 100644 --- a/src/bot_core/configuration/__init__.py +++ b/src/bot_core/configuration/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'bot_core.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/bot_core/service/__init__.py b/src/bot_core/service/__init__.py index e69de29bb2..8dbab469c8 100644 --- a/src/bot_core/service/__init__.py +++ b/src/bot_core/service/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'bot_core.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/bot_data/__init__.py b/src/bot_data/__init__.py index b295c56b12..d1a4442348 100644 --- a/src/bot_data/__init__.py +++ b/src/bot_data/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -bot-data Keksdose bot - data +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -Discord bot for the Keksdose discord Server - database package +Discord bot for the Keksdose discord Server :copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. diff --git a/src/bot_data/abc/__init__.py b/src/bot_data/abc/__init__.py index bfe2be086c..6dcb307fe3 100644 --- a/src/bot_data/abc/__init__.py +++ b/src/bot_data/abc/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -bot-data Keksdose bot - data +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -Discord bot for the Keksdose discord Server - database package +Discord bot for the Keksdose discord Server :copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. diff --git a/src/bot_data/migration/__init__.py b/src/bot_data/migration/__init__.py index 31b0848414..bd72eb300c 100644 --- a/src/bot_data/migration/__init__.py +++ b/src/bot_data/migration/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -bot-data Keksdose bot - data +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -Discord bot for the Keksdose discord Server - database package +Discord bot for the Keksdose discord Server :copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. diff --git a/src/bot_data/model/__init__.py b/src/bot_data/model/__init__.py index 40aff42b25..05bb31b48e 100644 --- a/src/bot_data/model/__init__.py +++ b/src/bot_data/model/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -bot-data Keksdose bot - data +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -Discord bot for the Keksdose discord Server - database package +Discord bot for the Keksdose discord Server :copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. diff --git a/src/bot_data/service/__init__.py b/src/bot_data/service/__init__.py index bfc7b185ae..953cb02db1 100644 --- a/src/bot_data/service/__init__.py +++ b/src/bot_data/service/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -bot-data Keksdose bot - data +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -Discord bot for the Keksdose discord Server - database package +Discord bot for the Keksdose discord Server :copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. diff --git a/src/modules/base/__init__.py b/src/modules/base/__init__.py index 425ab6c146..3d69314303 100644 --- a/src/modules/base/__init__.py +++ b/src/modules/base/__init__.py @@ -1 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.base' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + # imports + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/base/abc/__init__.py b/src/modules/base/abc/__init__.py index e69de29bb2..697662c10c 100644 --- a/src/modules/base/abc/__init__.py +++ b/src/modules/base/abc/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.base.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/base/command/__init__.py b/src/modules/base/command/__init__.py index b7e2a3e4d9..ecf5e1dd61 100644 --- a/src/modules/base/command/__init__.py +++ b/src/modules/base/command/__init__.py @@ -1,25 +1,26 @@ # -*- coding: utf-8 -*- """ -gismo sh-edraft Gismo +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -sh-edraft Dicord bot Gismo +Discord bot for the Keksdose discord Server -:copyright: (c) 2021 - 2022 sh-edraft.de +:copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. """ -__title__ = 'modules.base.service' +__title__ = 'modules.base.command' __author__ = 'Sven Heidemann' __license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.2' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' from collections import namedtuple + # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='2') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/base/configuration/__init__.py b/src/modules/base/configuration/__init__.py index e69de29bb2..13ac976602 100644 --- a/src/modules/base/configuration/__init__.py +++ b/src/modules/base/configuration/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.base.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/base/events/__init__.py b/src/modules/base/events/__init__.py index e69de29bb2..53a5534687 100644 --- a/src/modules/base/events/__init__.py +++ b/src/modules/base/events/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.base.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/base/service/__init__.py b/src/modules/base/service/__init__.py index 425ab6c146..78813b23d4 100644 --- a/src/modules/base/service/__init__.py +++ b/src/modules/base/service/__init__.py @@ -1 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.base.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + # imports + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/boot_log/__init__.py b/src/modules/boot_log/__init__.py index ad5eca3064..c841fbdb05 100644 --- a/src/modules/boot_log/__init__.py +++ b/src/modules/boot_log/__init__.py @@ -1 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.boot_log' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + # imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/boot_log/configuration/__init__.py b/src/modules/boot_log/configuration/__init__.py index e69de29bb2..2b5dfd5cd1 100644 --- a/src/modules/boot_log/configuration/__init__.py +++ b/src/modules/boot_log/configuration/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.boot_log.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/database/__init__.py b/src/modules/database/__init__.py index ad5eca3064..8f0adeedad 100644 --- a/src/modules/database/__init__.py +++ b/src/modules/database/__init__.py @@ -1 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.database' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + # imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/permission/__init__.py b/src/modules/permission/__init__.py index ad5eca3064..8265580146 100644 --- a/src/modules/permission/__init__.py +++ b/src/modules/permission/__init__.py @@ -1 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.permission' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + # imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/permission/abc/__init__.py b/src/modules/permission/abc/__init__.py index 9f960ac326..92b648db29 100644 --- a/src/modules/permission/abc/__init__.py +++ b/src/modules/permission/abc/__init__.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- """ -gismo sh-edraft Gismo +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -sh-edraft Dicord bot Gismo +Discord bot for the Keksdose discord Server -:copyright: (c) 2021 - 2022 sh-edraft.de +:copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. """ @@ -14,12 +14,13 @@ sh-edraft Dicord bot Gismo __title__ = 'modules.permission.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.2' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' from collections import namedtuple + # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='2') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/permission/configuration/__init__.py b/src/modules/permission/configuration/__init__.py index 6da26a1576..95882d5e8a 100644 --- a/src/modules/permission/configuration/__init__.py +++ b/src/modules/permission/configuration/__init__.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- """ -gismo sh-edraft Gismo +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -sh-edraft Dicord bot Gismo +Discord bot for the Keksdose discord Server -:copyright: (c) 2021 - 2022 sh-edraft.de +:copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. """ @@ -14,12 +14,13 @@ sh-edraft Dicord bot Gismo __title__ = 'modules.permission.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.2' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' from collections import namedtuple + # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='2') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/permission/events/__init__.py b/src/modules/permission/events/__init__.py index e69de29bb2..ae9d73a2a0 100644 --- a/src/modules/permission/events/__init__.py +++ b/src/modules/permission/events/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot Keksdose bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for the Keksdose discord Server + +:copyright: (c) 2022 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'modules.permission.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1') diff --git a/src/modules/permission/service/__init__.py b/src/modules/permission/service/__init__.py index 70ba12ea1a..9bdc09adb2 100644 --- a/src/modules/permission/service/__init__.py +++ b/src/modules/permission/service/__init__.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- """ -gismo sh-edraft Gismo +bot Keksdose bot ~~~~~~~~~~~~~~~~~~~ -sh-edraft Dicord bot Gismo +Discord bot for the Keksdose discord Server -:copyright: (c) 2021 - 2022 sh-edraft.de +:copyright: (c) 2022 sh-edraft.de :license: MIT, see LICENSE for more details. """ @@ -14,12 +14,13 @@ sh-edraft Dicord bot Gismo __title__ = 'modules.permission.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.2' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '1.0.0.dev1' from collections import namedtuple + # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='2') +version_info = VersionInfo(major='1', minor='0', micro='0.dev1')