From 6865953433112e052f1686182d00fa5aad41040a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 6 Oct 2022 16:51:28 +0200 Subject: [PATCH 1/2] Updated cpl-core package #65 --- src/bot/__init__.py | 4 ++-- src/bot/bot.json | 4 ++-- src/bot/config/appsettings.edrafts-pc-ubuntu.json | 6 ++++++ src/bot_core/__init__.py | 4 ++-- src/bot_core/abc/__init__.py | 4 ++-- src/bot_core/configuration/__init__.py | 4 ++-- src/bot_core/core_extension/__init__.py | 4 ++-- src/bot_core/events/__init__.py | 4 ++-- src/bot_core/helper/__init__.py | 4 ++-- src/bot_core/logging/__init__.py | 4 ++-- src/bot_core/pipes/__init__.py | 4 ++-- src/bot_core/service/__init__.py | 4 ++-- 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/admin/__init__.py | 4 ++-- src/modules/admin/command/__init__.py | 4 ++-- src/modules/auto_role/__init__.py | 4 ++-- src/modules/auto_role/command/__init__.py | 4 ++-- src/modules/auto_role/events/__init__.py | 4 ++-- src/modules/auto_role/helper/__init__.py | 4 ++-- src/modules/base/__init__.py | 4 ++-- src/modules/base/abc/__init__.py | 4 ++-- src/modules/base/command/__init__.py | 4 ++-- src/modules/base/configuration/__init__.py | 4 ++-- src/modules/base/events/__init__.py | 4 ++-- src/modules/base/service/__init__.py | 4 ++-- src/modules/boot_log/__init__.py | 4 ++-- src/modules/boot_log/configuration/__init__.py | 4 ++-- src/modules/database/__init__.py | 4 ++-- src/modules/moderator/__init__.py | 4 ++-- src/modules/moderator/command/__init__.py | 4 ++-- src/modules/permission/__init__.py | 4 ++-- src/modules/permission/abc/__init__.py | 4 ++-- src/modules/permission/configuration/__init__.py | 4 ++-- src/modules/permission/events/__init__.py | 4 ++-- src/modules/permission/service/__init__.py | 4 ++-- 39 files changed, 82 insertions(+), 76 deletions(-) diff --git a/src/bot/__init__.py b/src/bot/__init__.py index a3f4df3d..987fa6ee 100644 --- a/src/bot/__init__.py +++ b/src/bot/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot/bot.json b/src/bot/bot.json index 07958cbe..11f9a61e 100644 --- a/src/bot/bot.json +++ b/src/bot/bot.json @@ -4,7 +4,7 @@ "Version": { "Major": "0", "Minor": "2", - "Micro": "2" + "Micro": "3" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", @@ -16,7 +16,7 @@ "LicenseName": "MIT", "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [ - "cpl-core==2022.10.0.post3", + "cpl-core==2022.10.0.post6", "cpl-translation==2022.10.0", "cpl-query==2022.10.0", "cpl-discord==2022.10.0.post5" diff --git a/src/bot/config/appsettings.edrafts-pc-ubuntu.json b/src/bot/config/appsettings.edrafts-pc-ubuntu.json index a05aac5f..9a4ccd18 100644 --- a/src/bot/config/appsettings.edrafts-pc-ubuntu.json +++ b/src/bot/config/appsettings.edrafts-pc-ubuntu.json @@ -1,4 +1,10 @@ { + "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": "bot.log", diff --git a/src/bot_core/__init__.py b/src/bot_core/__init__.py index 6497b6fa..75e45f3f 100644 --- a/src/bot_core/__init__.py +++ b/src/bot_core/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/abc/__init__.py b/src/bot_core/abc/__init__.py index 8879e593..6bed6e11 100644 --- a/src/bot_core/abc/__init__.py +++ b/src/bot_core/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/configuration/__init__.py b/src/bot_core/configuration/__init__.py index ef1850dd..0e6f2e1a 100644 --- a/src/bot_core/configuration/__init__.py +++ b/src/bot_core/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/core_extension/__init__.py b/src/bot_core/core_extension/__init__.py index 3a970237..201573f4 100644 --- a/src/bot_core/core_extension/__init__.py +++ b/src/bot_core/core_extension/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.core_extension' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/events/__init__.py b/src/bot_core/events/__init__.py index 1971b90e..278da61a 100644 --- a/src/bot_core/events/__init__.py +++ b/src/bot_core/events/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.events' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/helper/__init__.py b/src/bot_core/helper/__init__.py index 441021cb..bfd7ff19 100644 --- a/src/bot_core/helper/__init__.py +++ b/src/bot_core/helper/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.helper' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/logging/__init__.py b/src/bot_core/logging/__init__.py index 1e602041..5ae285bb 100644 --- a/src/bot_core/logging/__init__.py +++ b/src/bot_core/logging/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.logging' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/pipes/__init__.py b/src/bot_core/pipes/__init__.py index 95982d42..e9f62709 100644 --- a/src/bot_core/pipes/__init__.py +++ b/src/bot_core/pipes/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.pipes' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_core/service/__init__.py b/src/bot_core/service/__init__.py index ca8b5388..63cc8d89 100644 --- a/src/bot_core/service/__init__.py +++ b/src/bot_core/service/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_core.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_data/__init__.py b/src/bot_data/__init__.py index a372c3aa..0e69edf4 100644 --- a/src/bot_data/__init__.py +++ b/src/bot_data/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_data' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_data/abc/__init__.py b/src/bot_data/abc/__init__.py index c358dc45..8a57f0d0 100644 --- a/src/bot_data/abc/__init__.py +++ b/src/bot_data/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_data.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_data/migration/__init__.py b/src/bot_data/migration/__init__.py index 2e2443a7..d28a56ee 100644 --- a/src/bot_data/migration/__init__.py +++ b/src/bot_data/migration/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_data.migration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_data/model/__init__.py b/src/bot_data/model/__init__.py index 5e9029e8..a66634fd 100644 --- a/src/bot_data/model/__init__.py +++ b/src/bot_data/model/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_data.model' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/bot_data/service/__init__.py b/src/bot_data/service/__init__.py index 6ac138f2..69c25125 100644 --- a/src/bot_data/service/__init__.py +++ b/src/bot_data/service/__init__.py @@ -15,7 +15,7 @@ __title__ = 'bot_data.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/admin/__init__.py b/src/modules/admin/__init__.py index 281d4e5c..bbf3f2b0 100644 --- a/src/modules/admin/__init__.py +++ b/src/modules/admin/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.admin' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/admin/command/__init__.py b/src/modules/admin/command/__init__.py index 2eb5b36f..c5035ad0 100644 --- a/src/modules/admin/command/__init__.py +++ b/src/modules/admin/command/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.admin.command' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/auto_role/__init__.py b/src/modules/auto_role/__init__.py index 86936814..6b3e526e 100644 --- a/src/modules/auto_role/__init__.py +++ b/src/modules/auto_role/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.auto_role' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/auto_role/command/__init__.py b/src/modules/auto_role/command/__init__.py index f0f2c9bc..9e9cc1ae 100644 --- a/src/modules/auto_role/command/__init__.py +++ b/src/modules/auto_role/command/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.auto_role.command' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/auto_role/events/__init__.py b/src/modules/auto_role/events/__init__.py index 2ab0e8e9..f431645b 100644 --- a/src/modules/auto_role/events/__init__.py +++ b/src/modules/auto_role/events/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.auto_role.events' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/auto_role/helper/__init__.py b/src/modules/auto_role/helper/__init__.py index 01dd5eb6..d90d3bab 100644 --- a/src/modules/auto_role/helper/__init__.py +++ b/src/modules/auto_role/helper/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.auto_role.helper' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/base/__init__.py b/src/modules/base/__init__.py index 127341b8..337ba2d6 100644 --- a/src/modules/base/__init__.py +++ b/src/modules/base/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.base' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/base/abc/__init__.py b/src/modules/base/abc/__init__.py index 76e2a071..4396c0e5 100644 --- a/src/modules/base/abc/__init__.py +++ b/src/modules/base/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.base.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/base/command/__init__.py b/src/modules/base/command/__init__.py index 6e111178..7383ff78 100644 --- a/src/modules/base/command/__init__.py +++ b/src/modules/base/command/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.base.command' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/base/configuration/__init__.py b/src/modules/base/configuration/__init__.py index aab13767..bf7d4c47 100644 --- a/src/modules/base/configuration/__init__.py +++ b/src/modules/base/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.base.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/base/events/__init__.py b/src/modules/base/events/__init__.py index a0ba5b1a..3337e0d9 100644 --- a/src/modules/base/events/__init__.py +++ b/src/modules/base/events/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.base.events' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/base/service/__init__.py b/src/modules/base/service/__init__.py index c3aa8958..37d31ea0 100644 --- a/src/modules/base/service/__init__.py +++ b/src/modules/base/service/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.base.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/boot_log/__init__.py b/src/modules/boot_log/__init__.py index 822e029f..a156bb4f 100644 --- a/src/modules/boot_log/__init__.py +++ b/src/modules/boot_log/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.boot_log' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/boot_log/configuration/__init__.py b/src/modules/boot_log/configuration/__init__.py index bd45bb7a..8d1ce4fa 100644 --- a/src/modules/boot_log/configuration/__init__.py +++ b/src/modules/boot_log/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.boot_log.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/database/__init__.py b/src/modules/database/__init__.py index 77c51380..694778b0 100644 --- a/src/modules/database/__init__.py +++ b/src/modules/database/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.database' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/moderator/__init__.py b/src/modules/moderator/__init__.py index 2cddb526..5416853f 100644 --- a/src/modules/moderator/__init__.py +++ b/src/modules/moderator/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.moderator' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/moderator/command/__init__.py b/src/modules/moderator/command/__init__.py index 22b49279..beeffcd4 100644 --- a/src/modules/moderator/command/__init__.py +++ b/src/modules/moderator/command/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.moderator.command' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/permission/__init__.py b/src/modules/permission/__init__.py index be1d38f4..51190b7a 100644 --- a/src/modules/permission/__init__.py +++ b/src/modules/permission/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.permission' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/permission/abc/__init__.py b/src/modules/permission/abc/__init__.py index 8cb90065..28a1c61e 100644 --- a/src/modules/permission/abc/__init__.py +++ b/src/modules/permission/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.permission.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/permission/configuration/__init__.py b/src/modules/permission/configuration/__init__.py index 725da88a..4ad1f1d4 100644 --- a/src/modules/permission/configuration/__init__.py +++ b/src/modules/permission/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.permission.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/permission/events/__init__.py b/src/modules/permission/events/__init__.py index 861d4ec6..6dbd86c1 100644 --- a/src/modules/permission/events/__init__.py +++ b/src/modules/permission/events/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.permission.events' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') diff --git a/src/modules/permission/service/__init__.py b/src/modules/permission/service/__init__.py index 138a6b6b..1341ec8d 100644 --- a/src/modules/permission/service/__init__.py +++ b/src/modules/permission/service/__init__.py @@ -15,7 +15,7 @@ __title__ = 'modules.permission.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '0.2.2' +__version__ = '0.2.3' from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='2', micro='2') +version_info = VersionInfo(major='0', minor='2', micro='3') From 523eb23f09b28544a1f8e01d1b9291464d105a68 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 6 Oct 2022 16:51:57 +0200 Subject: [PATCH 2/2] Changed logic to get member for reaction #65 --- src/modules/auto_role/helper/reaction_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/auto_role/helper/reaction_handler.py b/src/modules/auto_role/helper/reaction_handler.py index 4be20493..56c8df87 100644 --- a/src/modules/auto_role/helper/reaction_handler.py +++ b/src/modules/auto_role/helper/reaction_handler.py @@ -34,7 +34,11 @@ class ReactionHandler: return guild = self._bot.get_guild(payload.guild_id) - user = await guild.fetch_member(payload.user_id) + user = guild.get_member(payload.user_id) + if user is None: + self._logger.warn(__name__, f'User {payload.user_id} in {guild.name} not found - skipping') + return + if user.bot: self._logger.debug(__name__, f'User is bot - skipping') return