From 1d4e99de46fedbe9add9a1862c83277d0f09241f Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 5 Feb 2024 22:55:52 +0100 Subject: [PATCH 01/13] Update permission service cache when roles for member changed --- bot/src/bot_core/core_module.py | 4 ++-- ...ce.py => permission_service_with_cache.py} | 2 +- bot/src/bot_graphql/abc/query_abc.py | 6 ++--- .../mutations/achievement_mutation.py | 4 ++-- .../mutations/scheduled_event_mutation.py | 4 ++-- .../mutations/server_config_mutation.py | 4 ++-- .../mutations/short_role_name_mutation.py | 4 ++-- .../mutations/technician_config_mutation.py | 4 ++-- .../user_joined_game_server_mutation.py | 4 ++-- .../bot_graphql/mutations/user_mutation.py | 4 ++-- bot/src/modules/base/base_module.py | 2 ++ .../events/base_on_member_update_event.py | 24 +++++++++++++++++++ 12 files changed, 46 insertions(+), 20 deletions(-) rename bot/src/bot_core/service/{permission_service.py => permission_service_with_cache.py} (98%) create mode 100644 bot/src/modules/base/events/base_on_member_update_event.py diff --git a/bot/src/bot_core/core_module.py b/bot/src/bot_core/core_module.py index 9323b43e..f44c0312 100644 --- a/bot/src/bot_core/core_module.py +++ b/bot/src/bot_core/core_module.py @@ -15,7 +15,7 @@ from bot_core.service.client_utils_service import ClientUtilsService from bot_core.service.config_service import ConfigService from bot_core.service.data_integrity_service import DataIntegrityService from bot_core.service.message_service import MessageService -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache class CoreModule(ModuleABC): @@ -30,7 +30,7 @@ class CoreModule(ModuleABC): services.add_transient(MessageServiceABC, MessageService) services.add_transient(ClientUtilsABC, ClientUtilsService) services.add_transient(DataIntegrityService) - services.add_singleton(PermissionServiceABC, PermissionService) + services.add_singleton(PermissionServiceABC, PermissionServiceWithCache) # pipes services.add_transient(DateTimeOffsetPipe) diff --git a/bot/src/bot_core/service/permission_service.py b/bot/src/bot_core/service/permission_service_with_cache.py similarity index 98% rename from bot/src/bot_core/service/permission_service.py rename to bot/src/bot_core/service/permission_service_with_cache.py index 0ca7e0f3..06005387 100644 --- a/bot/src/bot_core/service/permission_service.py +++ b/bot/src/bot_core/service/permission_service_with_cache.py @@ -12,7 +12,7 @@ from bot_data.abc.technician_config_repository_abc import TechnicianConfigReposi from bot_data.model.team_member_type_enum import TeamMemberTypeEnum -class PermissionService(PermissionServiceABC): +class PermissionServiceWithCache(PermissionServiceABC): def __init__( self, logger: LoggerABC, diff --git a/bot/src/bot_graphql/abc/query_abc.py b/bot/src/bot_graphql/abc/query_abc.py index 9dae04ba..561adbfc 100644 --- a/bot/src/bot_graphql/abc/query_abc.py +++ b/bot/src/bot_graphql/abc/query_abc.py @@ -12,7 +12,7 @@ from bot_core.exception.service_exception import ServiceException from bot_api.route.route import Route from bot_core.configuration.feature_flags_enum import FeatureFlagsEnum from bot_core.environment_variables import MAINTENANCE -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache from bot_data.model.achievement import Achievement from bot_data.model.auth_role_enum import AuthRoleEnum from bot_data.model.auth_user import AuthUser @@ -82,7 +82,7 @@ class QueryABC(ObjectType): return config services = get_services() - permissions: PermissionService = services.get_service(PermissionService) + permissions: PermissionServiceWithCache = services.get_service(PermissionServiceWithCache) bot: DiscordBotServiceABC = services.get_service(DiscordBotServiceABC) config = get_config() @@ -269,7 +269,7 @@ class QueryABC(ObjectType): def _can_user_mutate_data( self, server: Server, permission: UserRoleEnum, services: ServiceProviderABC, config: ConfigurationABC ): - permissions: PermissionService = services.get_service(PermissionService) + permissions: PermissionServiceWithCache = services.get_service(PermissionServiceWithCache) bot: DiscordBotServiceABC = services.get_service(DiscordBotServiceABC) auth_user = Route.get_user() diff --git a/bot/src/bot_graphql/mutations/achievement_mutation.py b/bot/src/bot_graphql/mutations/achievement_mutation.py index 5cc939e0..7f8123d9 100644 --- a/bot/src/bot_graphql/mutations/achievement_mutation.py +++ b/bot/src/bot_graphql/mutations/achievement_mutation.py @@ -6,7 +6,7 @@ from bot_data.abc.server_repository_abc import ServerRepositoryABC from bot_data.model.achievement import Achievement from bot_data.model.user_role_enum import UserRoleEnum from bot_graphql.abc.query_abc import QueryABC -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache class AchievementMutation(QueryABC): @@ -16,7 +16,7 @@ class AchievementMutation(QueryABC): achievements: AchievementRepositoryABC, bot: DiscordBotServiceABC, db: DatabaseContextABC, - permissions: PermissionService, + permissions: PermissionServiceWithCache, ): QueryABC.__init__(self, "AchievementMutation") diff --git a/bot/src/bot_graphql/mutations/scheduled_event_mutation.py b/bot/src/bot_graphql/mutations/scheduled_event_mutation.py index 381c8685..a5b057b0 100644 --- a/bot/src/bot_graphql/mutations/scheduled_event_mutation.py +++ b/bot/src/bot_graphql/mutations/scheduled_event_mutation.py @@ -10,7 +10,7 @@ from bot_data.model.scheduled_event import ScheduledEvent from bot_data.model.scheduled_event_interval_enum import ScheduledEventIntervalEnum from bot_data.model.user_role_enum import UserRoleEnum from bot_graphql.abc.query_abc import QueryABC -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache class ScheduledEventMutation(QueryABC): @@ -20,7 +20,7 @@ class ScheduledEventMutation(QueryABC): scheduled_events: ScheduledEventRepositoryABC, bot: DiscordBotServiceABC, db: DatabaseContextABC, - permissions: PermissionService, + permissions: PermissionServiceWithCache, ): QueryABC.__init__(self, "ScheduledEventMutation") diff --git a/bot/src/bot_graphql/mutations/server_config_mutation.py b/bot/src/bot_graphql/mutations/server_config_mutation.py index b3434ee0..c9a93819 100644 --- a/bot/src/bot_graphql/mutations/server_config_mutation.py +++ b/bot/src/bot_graphql/mutations/server_config_mutation.py @@ -13,7 +13,7 @@ from bot_data.model.server_team_role_ids_config import ServerTeamRoleIdsConfig from bot_data.model.team_member_type_enum import TeamMemberTypeEnum from bot_data.model.user_role_enum import UserRoleEnum from bot_graphql.abc.query_abc import QueryABC -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache class ServerConfigMutation(QueryABC): @@ -25,7 +25,7 @@ class ServerConfigMutation(QueryABC): server_configs: ServerConfigRepositoryABC, db: DatabaseContextABC, config_service: ConfigService, - permissions: PermissionService, + permissions: PermissionServiceWithCache, ): QueryABC.__init__(self, "ServerConfigMutation") diff --git a/bot/src/bot_graphql/mutations/short_role_name_mutation.py b/bot/src/bot_graphql/mutations/short_role_name_mutation.py index ec5ee9b2..c3b4d2f4 100644 --- a/bot/src/bot_graphql/mutations/short_role_name_mutation.py +++ b/bot/src/bot_graphql/mutations/short_role_name_mutation.py @@ -6,7 +6,7 @@ from bot_data.abc.short_role_name_repository_abc import ShortRoleNameRepositoryA from bot_data.model.short_role_name import ShortRoleName from bot_data.model.user_role_enum import UserRoleEnum from bot_graphql.abc.query_abc import QueryABC -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache from modules.short_role_name.service.short_role_name_service import ShortRoleNameService @@ -17,7 +17,7 @@ class ShortRoleNameMutation(QueryABC): short_role_names: ShortRoleNameRepositoryABC, bot: DiscordBotServiceABC, db: DatabaseContextABC, - permissions: PermissionService, + permissions: PermissionServiceWithCache, short_role_name_service: ShortRoleNameService, ): QueryABC.__init__(self, "ShortRoleNameMutation") diff --git a/bot/src/bot_graphql/mutations/technician_config_mutation.py b/bot/src/bot_graphql/mutations/technician_config_mutation.py index 8ca08e86..06d15a53 100644 --- a/bot/src/bot_graphql/mutations/technician_config_mutation.py +++ b/bot/src/bot_graphql/mutations/technician_config_mutation.py @@ -16,7 +16,7 @@ from bot_data.model.technician_ping_url_config import TechnicianPingUrlConfig from bot_data.model.user_role_enum import UserRoleEnum from bot_data.service.technician_config_seeder import TechnicianConfigSeeder from bot_graphql.abc.query_abc import QueryABC -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache class TechnicianConfigMutation(QueryABC): @@ -31,7 +31,7 @@ class TechnicianConfigMutation(QueryABC): config_service: ConfigService, tech_seeder: TechnicianConfigSeeder, client_utils: ClientUtilsABC, - permissions: PermissionService, + permissions: PermissionServiceWithCache, ): QueryABC.__init__(self, "TechnicianConfigMutation") diff --git a/bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py b/bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py index 4c4987fc..d25a7b78 100644 --- a/bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py +++ b/bot/src/bot_graphql/mutations/user_joined_game_server_mutation.py @@ -11,7 +11,7 @@ from flask import request from bot_api.configuration.authentication_settings import AuthenticationSettings from bot_core.configuration.feature_flags_enum import FeatureFlagsEnum from bot_core.configuration.feature_flags_settings import FeatureFlagsSettings -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache from bot_data.abc.api_key_repository_abc import ApiKeyRepositoryABC from bot_data.abc.game_server_repository_abc import GameServerRepositoryABC from bot_data.abc.server_repository_abc import ServerRepositoryABC @@ -40,7 +40,7 @@ class UserJoinedGameServerMutation(QueryABC): user_game_idents: UserGameIdentRepositoryABC, bot: DiscordBotServiceABC, db: DatabaseContextABC, - permissions: PermissionService, + permissions: PermissionServiceWithCache, auth_settings: AuthenticationSettings, ): QueryABC.__init__(self, "UserJoinedGameServerMutation") diff --git a/bot/src/bot_graphql/mutations/user_mutation.py b/bot/src/bot_graphql/mutations/user_mutation.py index e2494c52..61953431 100644 --- a/bot/src/bot_graphql/mutations/user_mutation.py +++ b/bot/src/bot_graphql/mutations/user_mutation.py @@ -4,7 +4,7 @@ from cpl_core.database.context import DatabaseContextABC from cpl_discord.service import DiscordBotServiceABC from bot_api.route.route import Route -from bot_core.service.permission_service import PermissionService +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache from bot_data.abc.level_repository_abc import LevelRepositoryABC from bot_data.abc.server_repository_abc import ServerRepositoryABC from bot_data.abc.user_repository_abc import UserRepositoryABC @@ -23,7 +23,7 @@ class UserMutation(QueryABC): users: UserRepositoryABC, bot: DiscordBotServiceABC, db: DatabaseContextABC, - permissions: PermissionService, + permissions: PermissionServiceWithCache, levels: LevelRepositoryABC, level_service: LevelService, user_warnings: UserWarningsRepositoryABC, diff --git a/bot/src/modules/base/base_module.py b/bot/src/modules/base/base_module.py index 53ed3c71..72361ffb 100644 --- a/bot/src/modules/base/base_module.py +++ b/bot/src/modules/base/base_module.py @@ -8,6 +8,7 @@ from bot_core.abc.module_abc import ModuleABC from bot_core.abc.task_abc import TaskABC from bot_core.configuration.feature_flags_enum import FeatureFlagsEnum from modules.base.command.scheduled_events_group import ScheduledEventsCommand +from modules.base.events.base_on_member_update_event import BaseOnMemberUpdateEvent from modules.base.tasks.birthday_watcher import BirthdayWatcher from modules.base.command.afk_command import AFKCommand from modules.base.command.game_server_group import GameServerGroup @@ -117,3 +118,4 @@ class BaseModule(ModuleABC): DiscordEventTypesEnum.on_guild_join.value, BaseOnGuildJoinEvent, ) + services.add_transient(DiscordEventTypesEnum.on_member_update.value, BaseOnMemberUpdateEvent) diff --git a/bot/src/modules/base/events/base_on_member_update_event.py b/bot/src/modules/base/events/base_on_member_update_event.py new file mode 100644 index 00000000..d2701026 --- /dev/null +++ b/bot/src/modules/base/events/base_on_member_update_event.py @@ -0,0 +1,24 @@ +import discord +from cpl_core.logging import LoggerABC +from cpl_discord.events import OnMemberUpdateABC +from cpl_discord.service import DiscordBotServiceABC + +from bot_core.service.permission_service_with_cache import PermissionServiceWithCache + + +class BaseOnMemberUpdateEvent(OnMemberUpdateABC): + def __init__( + self, + logger: LoggerABC, + bot: DiscordBotServiceABC, + permissions: PermissionServiceWithCache, + ): + OnMemberUpdateABC.__init__(self) + + self._logger = logger + self._bot = bot + self._permissions = permissions + + async def on_member_update(self, before: discord.member.Member, after: discord.member.Member): + if before.roles != after.roles: + self._permissions.reset_cache() From 2bb22c0297ef48ce84592d030a78a8bf9d458455 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 16 Nov 2024 03:23:23 +0100 Subject: [PATCH 02/13] Updated staging deploy --- bot/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/docker b/bot/docker index fbcd9226..c26ab4be 160000 --- a/bot/docker +++ b/bot/docker @@ -1 +1 @@ -Subproject commit fbcd9226c4d199529fdbce5169b38b1b23074adb +Subproject commit c26ab4be084d0f51a161cf503ca2153172b1c2a8 From 3abd145ce231869bf15d5dfb9a052cefe97dd31e Mon Sep 17 00:00:00 2001 From: edraft Date: Tue, 7 Jan 2025 15:53:19 +0100 Subject: [PATCH 03/13] Fixed on message for new member #481 --- .../achievements/events/achievement_on_message_event.py | 4 +++- bot/src/modules/base/events/base_on_message_event.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bot/src/modules/achievements/events/achievement_on_message_event.py b/bot/src/modules/achievements/events/achievement_on_message_event.py index fa108de3..001d71f2 100644 --- a/bot/src/modules/achievements/events/achievement_on_message_event.py +++ b/bot/src/modules/achievements/events/achievement_on_message_event.py @@ -50,7 +50,9 @@ class AchievementOnMessageEvent(OnMessageABC): return server = self._servers.get_server_by_discord_id(message.guild.id) - user = self._users.get_user_by_discord_id_and_server_id(message.author.id, server.id) + user = self._users.find_user_by_discord_id_and_server_id(message.author.id, server.id) + if user is None: + return user.message_count += 1 self._users.update_user(user) diff --git a/bot/src/modules/base/events/base_on_message_event.py b/bot/src/modules/base/events/base_on_message_event.py index beb9c4a6..fa2fc0ee 100644 --- a/bot/src/modules/base/events/base_on_message_event.py +++ b/bot/src/modules/base/events/base_on_message_event.py @@ -86,6 +86,11 @@ class BaseOnMessageEvent(OnMessageABC): if message is None or message.guild is None: return + server = self._servers.get_server_by_discord_id(message.guild.id) + user = self._users.find_user_by_discord_id_and_server_id(message.author.id, server.id) + if user is None: + return + self._logger.info(__name__, f"Received message: {LogMessageHelper.get_log_string(message)}") self._append_received_message_count(message.guild.id) From 405055edf5ee115fcbb30edd7d2c66264e413154 Mon Sep 17 00:00:00 2001 From: edraft Date: Tue, 7 Jan 2025 16:40:06 +0100 Subject: [PATCH 04/13] Added realm management #481 --- bot/src/bot/__init__.py | 4 +- bot/src/bot/bot.json | 3 +- bot/src/bot/config | 2 +- bot/src/bot/module_list.py | 2 + bot/src/bot/translation/de.json | 50 ++ .../configuration/feature_flags_enum.py | 1 + .../configuration/feature_flags_settings.py | 1 + bot/src/bot_data/abc/realm_repository_abc.py | 69 +++ bot/src/bot_data/data_module.py | 3 + bot/src/bot_data/model/realm.py | 120 +++++ bot/src/bot_data/model/realm_history.py | 43 ++ bot/src/bot_data/model/realm_moderator.py | 106 +++++ .../bot_data/model/realm_moderator_history.py | 36 ++ .../bot_data/scripts/1.2.9/1_Realm_down.sql | 4 + bot/src/bot_data/scripts/1.2.9/1_Realm_up.sql | 97 ++++ .../service/realm_repository_service.py | 127 +++++ bot/src/modules/realms/__init__.py | 0 bot/src/modules/realms/command/__init__.py | 0 bot/src/modules/realms/command/realm_group.py | 446 ++++++++++++++++++ bot/src/modules/realms/realm_utils.py | 79 ++++ bot/src/modules/realms/reams.json | 44 ++ bot/src/modules/realms/reams_module.py | 21 + 22 files changed, 1254 insertions(+), 4 deletions(-) create mode 100644 bot/src/bot_data/abc/realm_repository_abc.py create mode 100644 bot/src/bot_data/model/realm.py create mode 100644 bot/src/bot_data/model/realm_history.py create mode 100644 bot/src/bot_data/model/realm_moderator.py create mode 100644 bot/src/bot_data/model/realm_moderator_history.py create mode 100644 bot/src/bot_data/scripts/1.2.9/1_Realm_down.sql create mode 100644 bot/src/bot_data/scripts/1.2.9/1_Realm_up.sql create mode 100644 bot/src/bot_data/service/realm_repository_service.py create mode 100644 bot/src/modules/realms/__init__.py create mode 100644 bot/src/modules/realms/command/__init__.py create mode 100644 bot/src/modules/realms/command/realm_group.py create mode 100644 bot/src/modules/realms/realm_utils.py create mode 100644 bot/src/modules/realms/reams.json create mode 100644 bot/src/modules/realms/reams_module.py diff --git a/bot/src/bot/__init__.py b/bot/src/bot/__init__.py index 614dd9f0..8b7b2776 100644 --- a/bot/src/bot/__init__.py +++ b/bot/src/bot/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot/bot.json b/bot/src/bot/bot.json index 477a78f1..96e69cdf 100644 --- a/bot/src/bot/bot.json +++ b/bot/src/bot/bot.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", @@ -71,6 +71,7 @@ "../modules/config/config.json", "../modules/database/database.json", "../modules/level/level.json", + "../modules/realms/realms.json", "../modules/short_role_name/short-role-name.json", "../modules/special_offers/special-offers.json", "../modules/technician/technician.json" diff --git a/bot/src/bot/config b/bot/src/bot/config index eeebd13f..40df1761 160000 --- a/bot/src/bot/config +++ b/bot/src/bot/config @@ -1 +1 @@ -Subproject commit eeebd13f80c6ceecc922ede5771e55212a884019 +Subproject commit 40df176141b233f73a9f702b1e8a598ed305dce1 diff --git a/bot/src/bot/module_list.py b/bot/src/bot/module_list.py index 8b0b72ad..171edbe3 100644 --- a/bot/src/bot/module_list.py +++ b/bot/src/bot/module_list.py @@ -12,6 +12,7 @@ from modules.boot_log.boot_log_module import BootLogModule from modules.config.config_module import ConfigModule from modules.database.database_module import DatabaseModule from modules.level.level_module import LevelModule +from modules.realms.reams_module import RealmsModule from modules.short_role_name.short_role_name_module import ShortRoleNameModule from modules.special_offers.special_offers_module import SteamSpecialOffersModule from modules.technician.technician_module import TechnicianModule @@ -37,6 +38,7 @@ class ModuleList: AchievementsModule, ShortRoleNameModule, SteamSpecialOffersModule, + RealmsModule, # has to be last! BootLogModule, CoreExtensionModule, diff --git a/bot/src/bot/translation/de.json b/bot/src/bot/translation/de.json index d6631bd1..b0dd1479 100644 --- a/bot/src/bot/translation/de.json +++ b/bot/src/bot/translation/de.json @@ -95,6 +95,56 @@ } }, "modules": { + "realm": { + "list": { + "title": "Level:", + "description": "Konfigurierte Level:", + "realm_names": "Realm-Namen", + "error": { + "nothing_found": "Keine Einträge gefunden." + } + }, + "add": { + "error": { + "role_exists": "Die Rolle {} existiert bereits.", + "category_exists": "Die Kategorie {} existiert bereits.", + "realm_exists": "Das Realm {} existiert bereits.", + "realm_create": "Fehler beim Erstellen des Realms {}." + }, + "success": "Das Realm {} wurde erfolgreich erstellt." + }, + "edit": { + "error": { + "realm_not_found": "Das Realm {} wurde nicht gefunden." + }, + "success": "Das Realm {} wurde erfolgreich in {} umbenannt." + }, + "error": { + "not_moderator": "Du bist kein Moderator des Realms {}." + }, + "delete": { + "error": { + "realm_not_found": "Das Realm {} wurde nicht gefunden." + }, + "success": "Das Realm {} wurde erfolgreich gelöscht." + }, + "member": { + "add": { + "success": "{} wurde erfolgreich zum Realm {} hinzugefügt." + }, + "remove": { + "success": "{} wurde erfolgreich aus dem Realm {} entfernt." + } + }, + "moderator": { + "add": { + "success": "{} wurde erfolgreich zum Moderator des Realms {} hinzugefügt." + }, + "remove": { + "success": "{} wurde erfolgreich als Moderator des Realms {} entfernt." + } + } + }, "special_offers": { "price": "Preis", "discount": "Rabatt", diff --git a/bot/src/bot_core/configuration/feature_flags_enum.py b/bot/src/bot_core/configuration/feature_flags_enum.py index 0a211505..e317b3b7 100644 --- a/bot/src/bot_core/configuration/feature_flags_enum.py +++ b/bot/src/bot_core/configuration/feature_flags_enum.py @@ -17,6 +17,7 @@ class FeatureFlagsEnum(Enum): moderator_module = "ModeratorModule" short_role_name_module = "ShortRoleNameModule" steam_special_offers_module = "SteamSpecialOffersModule" + realm_module = "RealmModule" # features api_only = "ApiOnly" presence = "Presence" diff --git a/bot/src/bot_core/configuration/feature_flags_settings.py b/bot/src/bot_core/configuration/feature_flags_settings.py index 104ff9e2..9276c069 100644 --- a/bot/src/bot_core/configuration/feature_flags_settings.py +++ b/bot/src/bot_core/configuration/feature_flags_settings.py @@ -19,6 +19,7 @@ class FeatureFlagsSettings(ConfigurationModelABC): FeatureFlagsEnum.config_module.value: True, # 19.07.2023 #127 FeatureFlagsEnum.short_role_name_module.value: True, # 28.09.2023 #378 FeatureFlagsEnum.steam_special_offers_module.value: True, # 11.10.2023 #188 + FeatureFlagsEnum.realm_module.value: True, # 07.01.2025 #481 # features FeatureFlagsEnum.api_only.value: False, # 13.10.2022 #70 FeatureFlagsEnum.presence.value: True, # 03.10.2022 #56 diff --git a/bot/src/bot_data/abc/realm_repository_abc.py b/bot/src/bot_data/abc/realm_repository_abc.py new file mode 100644 index 00000000..cef51612 --- /dev/null +++ b/bot/src/bot_data/abc/realm_repository_abc.py @@ -0,0 +1,69 @@ +from abc import ABC, abstractmethod +from typing import Optional + +from cpl_query.extension import List + +from bot_data.model.realm import Realm +from bot_data.model.realm_moderator import RealmModerator + + +class RealmRepositoryABC(ABC): + @abstractmethod + def __init__(self): + pass + + @abstractmethod + def get_all(self) -> List[Realm]: + pass + + @abstractmethod + def get_realm_by_id(self, id: int) -> Realm: + pass + + @abstractmethod + def find_realm_by_id(self, id: int) -> Optional[Realm]: + pass + + @abstractmethod + def find_realm_by_name(self, name: str) -> Optional[Realm]: + pass + + @abstractmethod + def get_realms_by_server_id(self, id: int) -> List[Realm]: + pass + + @abstractmethod + def add_realm(self, realm: Realm): + pass + + @abstractmethod + def update_realm(self, realm: Realm): + pass + + @abstractmethod + def delete_realm(self, realm: Realm): + pass + + @abstractmethod + def get_realm_moderators(self) -> List[RealmModerator]: + pass + + @abstractmethod + def get_realm_moderator_by_id(self, id: int) -> RealmModerator: + pass + + @abstractmethod + def get_realm_moderators_by_realm_id(self, id: int) -> List[RealmModerator]: + pass + + @abstractmethod + def add_realm_moderator(self, realm: RealmModerator): + pass + + @abstractmethod + def update_realm_moderator(self, realm: RealmModerator): + pass + + @abstractmethod + def delete_realm_moderator(self, realm: RealmModerator): + pass diff --git a/bot/src/bot_data/data_module.py b/bot/src/bot_data/data_module.py index 5d20e874..603d8822 100644 --- a/bot/src/bot_data/data_module.py +++ b/bot/src/bot_data/data_module.py @@ -14,6 +14,7 @@ from bot_data.abc.data_seeder_abc import DataSeederABC from bot_data.abc.game_server_repository_abc import GameServerRepositoryABC from bot_data.abc.known_user_repository_abc import KnownUserRepositoryABC from bot_data.abc.level_repository_abc import LevelRepositoryABC +from bot_data.abc.realm_repository_abc import RealmRepositoryABC from bot_data.abc.scheduled_event_repository_abc import ScheduledEventRepositoryABC from bot_data.abc.server_config_repository_abc import ServerConfigRepositoryABC from bot_data.abc.server_repository_abc import ServerRepositoryABC @@ -46,6 +47,7 @@ from bot_data.service.client_repository_service import ClientRepositoryService from bot_data.service.game_server_repository_service import GameServerRepositoryService from bot_data.service.known_user_repository_service import KnownUserRepositoryService from bot_data.service.level_repository_service import LevelRepositoryService +from bot_data.service.realm_repository_service import RealmRepositoryService from bot_data.service.scheduled_event_repository_service import ScheduledEventRepositoryService from bot_data.service.seeder_service import SeederService from bot_data.service.server_config_repository_service import ( @@ -118,6 +120,7 @@ class DataModule(ModuleABC): services.add_transient(ShortRoleNameRepositoryABC, ShortRoleNameRepositoryService) services.add_transient(SteamSpecialOfferRepositoryABC, SteamSpecialOfferRepositoryService) services.add_transient(ScheduledEventRepositoryABC, ScheduledEventRepositoryService) + services.add_transient(RealmRepositoryABC, RealmRepositoryService) services.add_transient(SeederService) services.add_transient(DataSeederABC, TechnicianConfigSeeder) diff --git a/bot/src/bot_data/model/realm.py b/bot/src/bot_data/model/realm.py new file mode 100644 index 00000000..70d2b024 --- /dev/null +++ b/bot/src/bot_data/model/realm.py @@ -0,0 +1,120 @@ +from datetime import datetime +from typing import Optional + +from cpl_core.database import TableABC + +from bot_data.model.server import Server + + +class Realm(TableABC): + def __init__( + self, + name: str, + role_id: int, + server: Optional[Server], + created_at: datetime = None, + modified_at: datetime = None, + id=0, + ): + self._id = id + self._name = name + self._role_id = role_id + self._server = server + + TableABC.__init__(self) + self._created_at = created_at if created_at is not None else self._created_at + self._modified_at = modified_at if modified_at is not None else self._modified_at + + @property + def id(self) -> int: + return self._id + + @property + def name(self) -> str: + return self._name + + @name.setter + def name(self, value: str): + self._name = value + + @property + def role_id(self) -> int: + return self._role_id + + @role_id.setter + def role_id(self, value: int): + self._role_id = value + + @property + def server(self) -> Server: + return self._server + + @staticmethod + def get_select_all_string() -> str: + return str( + f""" + SELECT * FROM `Realms`; + """ + ) + + @staticmethod + def get_select_by_id_string(id: int) -> str: + return str( + f""" + SELECT * FROM `Realms` + WHERE `RealmId` = {id}; + """ + ) + + @staticmethod + def get_select_by_server_id_string(id: int) -> str: + return str( + f""" + SELECT * FROM `Realms` + WHERE `ServerId` = {id}; + """ + ) + + @staticmethod + def get_select_by_name_string(name: str) -> str: + return str( + f""" + SELECT * FROM `Realms` + WHERE `Name` = '{name}'; + """ + ) + + @property + def insert_string(self) -> str: + return str( + f""" + INSERT INTO `Realms` ( + `ServerId`, `Name`, `RoleId` + ) VALUES ( + {self._server.id}, + '{self._name}', + {self._role_id} + ); + """ + ) + + @property + def udpate_string(self) -> str: + return str( + f""" + UPDATE `Realms` + SET `ServerId` = {self._server.id}, + `Name` = '{self._name}', + `RoleId` = {self._role_id} + WHERE `RealmId` = {self._id}; + """ + ) + + @property + def delete_string(self) -> str: + return str( + f""" + DELETE FROM `Realms` + WHERE `RealmId` = {self._id}; + """ + ) diff --git a/bot/src/bot_data/model/realm_history.py b/bot/src/bot_data/model/realm_history.py new file mode 100644 index 00000000..57c8e992 --- /dev/null +++ b/bot/src/bot_data/model/realm_history.py @@ -0,0 +1,43 @@ +from typing import Optional + +from bot_data.abc.history_table_abc import HistoryTableABC +from bot_data.model.server import Server + + +class Realm(HistoryTableABC): + def __init__( + self, + server: Optional[Server], + name: str, + role_id: int, + deleted: bool, + date_from: str, + date_to: str, + id=0, + ): + HistoryTableABC.__init__(self) + + self._id = id + self._server = server + self._name = name + self._role_id = role_id + + self._deleted = deleted + self._date_from = date_from + self._date_to = date_to + + @property + def id(self) -> int: + return self._id + + @property + def server(self) -> Server: + return self._server + + @property + def name(self) -> str: + return self._name + + @property + def role_id(self) -> int: + return self._role_id diff --git a/bot/src/bot_data/model/realm_moderator.py b/bot/src/bot_data/model/realm_moderator.py new file mode 100644 index 00000000..e20fd834 --- /dev/null +++ b/bot/src/bot_data/model/realm_moderator.py @@ -0,0 +1,106 @@ +from datetime import datetime + +from cpl_core.database import TableABC + +from bot_data.model.realm import Realm +from bot_data.model.user import User + + +class RealmModerator(TableABC): + def __init__( + self, + realm: Realm, + user: User, + created_at: datetime = None, + modified_at: datetime = None, + id=0, + ): + self._join_id = id + self._realm = realm + self._user = user + + TableABC.__init__(self) + self._created_at = created_at if created_at is not None else self._created_at + self._modified_at = modified_at if modified_at is not None else self._modified_at + + @property + def id(self) -> int: + return self._join_id + + @property + def realm(self) -> Realm: + return self._realm + + @property + def user(self) -> User: + return self._user + + @staticmethod + def get_select_all_string() -> str: + return str( + f""" + SELECT * FROM `RealmModerators`; + """ + ) + + @staticmethod + def get_select_by_id_string(id: int) -> str: + return str( + f""" + SELECT * FROM `RealmModerators` + WHERE `Id` = {id}; + """ + ) + + @staticmethod + def get_select_by_realm_id_string(id: int) -> str: + return str( + f""" + SELECT * FROM `RealmModerators` + WHERE `RealmId` = {id}; + """ + ) + + @staticmethod + def get_select_by_user_id_string(id: int) -> str: + return str( + f""" + SELECT * FROM `RealmModerators` + WHERE `UserId` = {id}; + """ + ) + + @property + def insert_string(self) -> str: + return str( + f""" + INSERT INTO `RealmModerators` ( + `UserId`, `RealmId` + ) VALUES ( + {self._user.id}, + {self._realm.id} + ); + """ + ) + + @property + def udpate_string(self) -> str: + return str(f"""""") + + @property + def delete_string(self) -> str: + return str( + f""" + DELETE FROM `RealmModerators` + WHERE `Id` = {self._join_id}; + """ + ) + + @staticmethod + def delete_by_user_id_string(id: int) -> str: + return str( + f""" + DELETE FROM `RealmModerators` + WHERE `UserId` = {id} + """ + ) diff --git a/bot/src/bot_data/model/realm_moderator_history.py b/bot/src/bot_data/model/realm_moderator_history.py new file mode 100644 index 00000000..7fe5f5f2 --- /dev/null +++ b/bot/src/bot_data/model/realm_moderator_history.py @@ -0,0 +1,36 @@ +from bot_data.abc.history_table_abc import HistoryTableABC +from bot_data.model.realm import Realm +from bot_data.model.user import User + + +class RealmModerator(HistoryTableABC): + def __init__( + self, + realm: Realm, + user: User, + deleted: bool, + date_from: str, + date_to: str, + id=0, + ): + HistoryTableABC.__init__(self) + + self._join_id = id + self._realm = realm + self._user = user + + self._deleted = deleted + self._date_from = date_from + self._date_to = date_to + + @property + def id(self) -> int: + return self._join_id + + @property + def realm(self) -> Realm: + return self._realm + + @property + def user(self) -> User: + return self._user diff --git a/bot/src/bot_data/scripts/1.2.9/1_Realm_down.sql b/bot/src/bot_data/scripts/1.2.9/1_Realm_down.sql new file mode 100644 index 00000000..923537ad --- /dev/null +++ b/bot/src/bot_data/scripts/1.2.9/1_Realm_down.sql @@ -0,0 +1,4 @@ +DROP TABLE IF EXISTS `Realms`; +DROP TABLE IF EXISTS `RealmsHistory`; +DROP TABLE IF EXISTS `RealmModerators`; +DROP TABLE IF EXISTS `RealmModeratorsHistory`; \ No newline at end of file diff --git a/bot/src/bot_data/scripts/1.2.9/1_Realm_up.sql b/bot/src/bot_data/scripts/1.2.9/1_Realm_up.sql new file mode 100644 index 00000000..a1b0811f --- /dev/null +++ b/bot/src/bot_data/scripts/1.2.9/1_Realm_up.sql @@ -0,0 +1,97 @@ +CREATE TABLE IF NOT EXISTS `Realms` +( + `RealmId` BIGINT NOT NULL AUTO_INCREMENT, + `Name` VARCHAR(255) NOT NULL, + `RoleId` BIGINT NOT NULL, + `ServerId` BIGINT, + `CreatedAt` DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6), + `LastModifiedAt` DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + PRIMARY KEY (`RealmId`), + FOREIGN KEY (`ServerId`) REFERENCES `Servers` (`ServerId`) +); + + +CREATE TABLE IF NOT EXISTS `RealmsHistory` +( + `RealmId` BIGINT(20) NOT NULL, + `Name` VARCHAR(255) NOT NULL, + `RoleId` BIGINT NOT NULL, + `ServerId` BIGINT(20) DEFAULT NULL, + `Deleted` BOOL DEFAULT FALSE, + `DateFrom` DATETIME(6) NOT NULL, + `DateTo` DATETIME(6) NOT NULL +); + +DROP TRIGGER IF EXISTS `TR_RealmsUpdate`; + +CREATE TRIGGER `TR_RealmsUpdate` + AFTER UPDATE + ON `Realms` + FOR EACH ROW +BEGIN + INSERT INTO `RealmsHistory` (`RealmId`, `Name`, `RoleId`, `ServerId`, `DateFrom`, `DateTo`) + VALUES (OLD.RealmId, OLD.Name, OLD.RoleId, OLD.ServerId, OLD.LastModifiedAt, CURRENT_TIMESTAMP(6)); +END; + +DROP TRIGGER IF EXISTS `TR_RealmsDelete`; + +CREATE TRIGGER `TR_RealmsDelete` + AFTER DELETE + ON `Realms` + FOR EACH ROW +BEGIN + INSERT INTO `RealmsHistory` (`RealmId`, `Name`, `RoleId`, `ServerId`, `Deleted`, `DateFrom`, `DateTo`) + VALUES (OLD.RealmId, OLD.Name, OLD.RoleId, OLD.ServerId, TRUE, OLD.LastModifiedAt, CURRENT_TIMESTAMP(6)); +END; + +-- Realm moderators + +CREATE TABLE IF NOT EXISTS `RealmModerators` +( + `Id` BIGINT NOT NULL AUTO_INCREMENT, + `RealmId` BIGINT NOT NULL, + `UserId` BIGINT NOT NULL, + `ServerId` BIGINT, + `CreatedAt` DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6), + `LastModifiedAt` DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + PRIMARY KEY (`Id`), + FOREIGN KEY (`RealmId`) REFERENCES `Realms` (`RealmId`), + FOREIGN KEY (`UserId`) REFERENCES `Users` (`UserId`), + FOREIGN KEY (`ServerId`) REFERENCES `Servers` (`ServerId`) +); + + +CREATE TABLE IF NOT EXISTS `RealmModeratorsHistory` +( + `Id` BIGINT(20) NOT NULL, + `RealmId` BIGINT NOT NULL, + `UserId` BIGINT NOT NULL, + `ServerId` BIGINT(20) DEFAULT NULL, + `Deleted` BOOL DEFAULT FALSE, + `DateFrom` DATETIME(6) NOT NULL, + `DateTo` DATETIME(6) NOT NULL +); + +DROP TRIGGER IF EXISTS `TR_RealmModeratorsUpdate`; + +CREATE TRIGGER `TR_RealmModeratorsUpdate` + AFTER UPDATE + ON `RealmModerators` + FOR EACH ROW +BEGIN + INSERT INTO `RealmModeratorsHistory` (`Id`, `RealmId`, `UserId`, `ServerId`, `DateFrom`, `DateTo`) + VALUES (OLD.Id, OLD.RealmId, OLD.UserId, OLD.ServerId, OLD.LastModifiedAt, CURRENT_TIMESTAMP(6)); +END; + +DROP TRIGGER IF EXISTS `TR_RealmModeratorsDelete`; + +CREATE TRIGGER `TR_RealmModeratorsDelete` + AFTER DELETE + ON `RealmModerators` + FOR EACH ROW +BEGIN + INSERT INTO `RealmModeratorsHistory` (`Id`, `RealmId`, `UserId`, `ServerId`, `Deleted`, `DateFrom`, `DateTo`) + VALUES (OLD.Id, OLD.RealmId, OLD.UserId, OLD.ServerId, TRUE, OLD.LastModifiedAt, CURRENT_TIMESTAMP(6)); +END; + + diff --git a/bot/src/bot_data/service/realm_repository_service.py b/bot/src/bot_data/service/realm_repository_service.py new file mode 100644 index 00000000..5101d394 --- /dev/null +++ b/bot/src/bot_data/service/realm_repository_service.py @@ -0,0 +1,127 @@ +from typing import Optional + +from cpl_core.database.context import DatabaseContextABC +from cpl_query.extension import List + +from bot_core.logging.database_logger import DatabaseLogger +from bot_data.abc.realm_repository_abc import RealmRepositoryABC +from bot_data.abc.server_repository_abc import ServerRepositoryABC +from bot_data.abc.user_repository_abc import UserRepositoryABC +from bot_data.model.realm import Realm +from bot_data.model.realm_moderator import RealmModerator + + +class RealmRepositoryService(RealmRepositoryABC): + def __init__( + self, + logger: DatabaseLogger, + db_context: DatabaseContextABC, + servers: ServerRepositoryABC, + users: UserRepositoryABC, + ): + self._logger = logger + self._context = db_context + self._servers = servers + self._users = users + + RealmRepositoryABC.__init__(self) + + def _from_result(self, result: tuple) -> Realm: + return Realm( + result[1], + result[2], + self._servers.get_server_by_id(result[3]), + result[4], + result[5], + id=result[0], + ) + + def get_all(self) -> List[Realm]: + self._logger.trace(__name__, f"Send SQL command: {Realm.get_select_all_string()}") + return List( + Realm, [self._from_result(result) for result in self._context.select(Realm.get_select_all_string())] + ) + + def get_realm_by_id(self, id: int) -> Realm: + self._logger.trace(__name__, f"Send SQL command: {Realm.get_select_by_id_string(id)}") + return self._from_result(self._context.select(Realm.get_select_by_id_string(id))[0]) + + def find_realm_by_id(self, id: int) -> Optional[Realm]: + self._logger.trace(__name__, f"Send SQL command: {Realm.get_select_by_id_string(id)}") + result = self._context.select(Realm.get_select_by_id_string(id)) + if result is None or len(result) == 0: + return None + + return self._from_result(result[0]) + + def find_realm_by_name(self, name: str) -> Optional[Realm]: + self._logger.trace(__name__, f"Send SQL command: {Realm.get_select_by_name_string(name)}") + result = self._context.select(Realm.get_select_by_name_string(name)) + if result is None or len(result) == 0: + return None + + return self._from_result(result[0]) + + def get_realms_by_server_id(self, id: int) -> List[Realm]: + self._logger.trace(__name__, f"Send SQL command: {Realm.get_select_by_server_id_string(id)}") + return List( + Realm, + [self._from_result(result) for result in self._context.select(Realm.get_select_by_server_id_string(id))], + ) + + def add_realm(self, realm: Realm): + self._logger.trace(__name__, f"Send SQL command: {realm.insert_string}") + self._context.cursor.execute(realm.insert_string) + + def update_realm(self, realm: Realm): + self._logger.trace(__name__, f"Send SQL command: {realm.udpate_string}") + self._context.cursor.execute(realm.udpate_string) + + def delete_realm(self, realm: Realm): + self._logger.trace(__name__, f"Send SQL command: {realm.delete_string}") + self._context.cursor.execute(realm.delete_string) + + def _rule_from_result(self, result: tuple) -> RealmModerator: + return RealmModerator( + self.get_realm_by_id(result[1]), + self._users.get_user_by_id(result[2]), + result[4], + result[5], + id=result[0], + ) + + def get_realm_moderators(self) -> List[RealmModerator]: + self._logger.trace(__name__, f"Send SQL command: {RealmModerator.get_select_all_string()}") + return List( + RealmModerator, + [self._rule_from_result(result) for result in self._context.select(RealmModerator.get_select_all_string())], + ) + + def get_realm_moderator_by_id(self, id: int) -> RealmModerator: + self._logger.trace(__name__, f"Send SQL command: {RealmModerator.get_select_by_id_string(id)}") + return self._rule_from_result(self._context.select(RealmModerator.get_select_by_id_string(id))[0]) + + def get_realm_moderators_by_realm_id(self, id: int) -> List[RealmModerator]: + self._logger.trace( + __name__, + f"Send SQL command: {RealmModerator.get_select_by_realm_id_string(id)}", + ) + return List( + RealmModerator, + [ + self._rule_from_result(result) + for result in self._context.select(RealmModerator.get_select_by_realm_id_string(id)) + ], + ) + + def add_realm_moderator(self, realm_moderator: RealmModerator): + self._logger.trace(__name__, f"Send SQL command: {realm_moderator.insert_string}") + self._context.cursor.execute(realm_moderator.insert_string) + + def update_realm_moderator(self, realm_moderator: RealmModerator): + self._logger.trace(__name__, f"Send SQL command: {realm_moderator.udpate_string}") + self._context.cursor.execute(realm_moderator.udpate_string) + + def delete_realm_moderator(self, realm_moderator: RealmModerator): + self._logger.trace(__name__, f"Send SQL command: {realm_moderator.delete_string}") + self._context.cursor.execute(realm_moderator.delete_string) diff --git a/bot/src/modules/realms/__init__.py b/bot/src/modules/realms/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/bot/src/modules/realms/command/__init__.py b/bot/src/modules/realms/command/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/bot/src/modules/realms/command/realm_group.py b/bot/src/modules/realms/command/realm_group.py new file mode 100644 index 00000000..d563da39 --- /dev/null +++ b/bot/src/modules/realms/command/realm_group.py @@ -0,0 +1,446 @@ +from typing import List as TList +from typing import Optional + +import discord +from cpl_discord.command import DiscordCommandABC +from cpl_discord.service import DiscordBotServiceABC +from cpl_translation import TranslatePipe +from discord import app_commands, Member +from discord.ext import commands +from discord.ext.commands import Context + +from bot_core.abc.client_utils_abc import ClientUtilsABC +from bot_core.abc.message_service_abc import MessageServiceABC +from bot_core.abc.permission_service_abc import PermissionServiceABC +from bot_core.helper.command_checks import CommandChecks +from bot_core.logging.command_logger import CommandLogger +from bot_data.abc.realm_repository_abc import RealmRepositoryABC +from bot_data.abc.server_repository_abc import ServerRepositoryABC +from bot_data.abc.user_repository_abc import UserRepositoryABC +from bot_data.model.realm import Realm +from bot_data.model.realm_moderator import RealmModerator +from bot_data.model.technician_config import TechnicianConfig +from modules.realms.realm_utils import RealmUtils + + +class RealmGroup(DiscordCommandABC): + def __init__( + self, + logger: CommandLogger, + message_service: MessageServiceABC, + bot: DiscordBotServiceABC, + client_utils: ClientUtilsABC, + translate: TranslatePipe, + permissions: PermissionServiceABC, + servers: ServerRepositoryABC, + users: UserRepositoryABC, + realms: RealmRepositoryABC, + settings: TechnicianConfig, + realm_utils: RealmUtils, + ): + DiscordCommandABC.__init__(self) + + self._logger = logger + self._message_service = message_service + self._bot = bot + self._client_utils = client_utils + self._t = translate + self._permissions = permissions + self._servers = servers + self._users = users + self._realms = realms + self._settings = settings + self._realm_utils = realm_utils + + self._logger.trace(__name__, f"Loaded command service: {type(self).__name__}") + + async def _auto_realm_complete( + self, interaction: discord.Interaction, current: str + ) -> TList[app_commands.Choice[str]]: + server = self._servers.get_server_by_discord_id(interaction.guild.id) + realms = self._realms.get_realms_by_server_id(server.id).select(lambda x: x.name) + return [ + app_commands.Choice(name=realm, value=realm) + for realm in self._client_utils.get_auto_complete_list(realms, current, lambda x: x.name) + ] + + @commands.hybrid_group(name="realm") + @commands.guild_only() + async def realm(self, ctx: Context): + pass + + @realm.command() + @commands.guild_only() + @CommandChecks.check_is_ready() + @CommandChecks.check_is_member_moderator() + async def list(self, ctx: Context): + self._logger.debug(__name__, f"Received command realm list {ctx}") + realms = self._realms.get_all() + + if len(realms) == 0: + await self._message_service.send_ctx_msg(ctx, self._t.transform("modules.realm.list.error.nothing_found")) + self._logger.trace(__name__, f"Finished command realm list") + return + + embed = discord.Embed( + title=self._t.transform("modules.realm.list.title"), + description=self._t.transform("modules.realm.list.description"), + color=int("ef9d0d", 16), + ) + + realm_names = "" + for realm in realms: + realm_names += f"\n{realm.name}" + + embed.add_field( + name=self._t.transform("modules.realm.list.realm_names"), + value=realm_names, + inline=True, + ) + + await self._message_service.send_ctx_msg(ctx, embed) + self._logger.trace(__name__, f"Finished command realm list") + + @realm.command() + @commands.guild_only() + @CommandChecks.check_is_ready() + @CommandChecks.check_is_member_moderator() + async def add(self, ctx: Context, name: str, leader: Optional[discord.Member] = None): + self._logger.debug(__name__, f"Received command realm list {ctx}") + + if self._realm_utils.find_role_by_name(ctx.guild, name) is not None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.role_exists").format(name), + ) + return + + if name in [x.name for x in ctx.guild.categories]: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.category_exists").format(name), + ) + return + + try: + role = await ctx.guild.create_role(name=name) + server = self._servers.get_server_by_discord_id(ctx.guild.id) + if self._realms.find_realm_by_name(name) is not None: + await role.delete() + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.realm_exists").format(name), + ) + return + + realm = Realm(name, role.id, server) + self._realms.add_realm(realm) + realm = self._realms.find_realm_by_name(name) + if realm is None: + raise ValueError("Realm not found after creation") + + if leader is not None: + self._realms.add_realm_moderator( + RealmModerator(realm, self._users.get_user_by_discord_id_and_server_id(leader.id, server.id)) + ) + + await self._realm_utils.create_category(ctx.guild, name, role, leader) + + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.success").format(name), + ) + except Exception as e: + role = self._realm_utils.find_role_by_name(ctx.guild, name) + if role is not None: + await role.delete() + + self._logger.error(__name__, f"Error creating realm: {e}") + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.realm_create").format(name), + ) + return + + self._logger.trace(__name__, f"Finished realm list command") + + @realm.command() + @commands.guild_only() + @CommandChecks.check_is_ready() + @CommandChecks.check_is_member_moderator() + async def edit(self, ctx: Context, realm_name: str, name: str): + self._logger.debug(__name__, f"Received command realm list {ctx}") + realm = self._realms.find_realm_by_name(realm_name) + if realm is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.edit.error.realm_not_found").format(realm_name), + ) + return + + realm.name = name + self._realms.update_realm(realm) + + role = self._realm_utils.find_role_by_name(ctx.guild, realm_name) + if role is None and self._realm_utils.find_role_by_name(ctx.guild, name) is None: + role = await ctx.guild.create_role(name=name) + realm.role_id = role.id + self._realms.update_realm(realm) + + elif role is not None: + await role.edit(name=name) + + category = self._realm_utils.find_category_by_name(ctx.guild, realm_name) + if category is None: + mods = self._realms.get_realm_moderators_by_realm_id(realm.id) + leader = mods[0].user.discord_id if len(mods) > 0 else None + + await self._realm_utils.create_category(ctx.guild, name, role, leader) + + await category.edit(name=name) + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.edit.success").format(realm_name, name), + ) + + self._logger.trace(__name__, f"Finished realm list command") + + @edit.autocomplete("realm_name") + async def remove_autocomplete( + self, interaction: discord.Interaction, current: str + ) -> TList[app_commands.Choice[str]]: + return await self._auto_realm_complete(interaction, current) + + @realm.command() + @commands.guild_only() + @CommandChecks.check_is_ready() + @CommandChecks.check_is_member_moderator() + async def delete(self, ctx: Context, realm_name: str): + self._logger.debug(__name__, f"Received command realm list {ctx}") + realm = self._realms.find_realm_by_name(realm_name) + if realm is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.delete.error.realm_not_found").format(realm_name), + ) + return + + role = self._realm_utils.find_role_by_name(ctx.guild, realm_name) + if role is not None: + await role.delete() + + category = self._realm_utils.find_category_by_name(ctx.guild, realm_name) + if category is not None: + for c in category.channels: + await c.delete() + + await category.delete() + + mods = self._realms.get_realm_moderators_by_realm_id(realm.id) + for mod in mods: + self._realms.delete_realm_moderator(mod) + + self._realms.delete_realm(realm) + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.delete.success").format(realm_name), + ) + + self._logger.trace(__name__, f"Finished realm list command") + + @delete.autocomplete("realm_name") + async def remove_autocomplete( + self, interaction: discord.Interaction, current: str + ) -> TList[app_commands.Choice[str]]: + return await self._auto_realm_complete(interaction, current) + + @realm.group(name="member") + @commands.guild_only() + async def member(self, ctx: Context): + pass + + @member.command("add") + @commands.guild_only() + @CommandChecks.check_is_ready() + async def member_add(self, ctx: Context, realm: str, member: Member): + self._logger.debug(__name__, f"Received command realm member add {ctx}") + + realm = self._realms.find_realm_by_name(realm) + if realm is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.realm_not_found").format(realm), + ) + return + + if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator( + ctx.author.id, realm.id + ): + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.error.not_moderator").format(realm.name), + ) + return + + role = self._realm_utils.find_role_by_name(ctx.guild, realm.name) + if role is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.role_not_found").format(realm.name), + ) + return + + await member.add_roles(role) + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.member.add.success").format(member.name, realm.name), + ) + + self._logger.trace(__name__, f"Finished realm list command") + + @member_add.autocomplete("realm") + async def add_autocomplete(self, interaction: discord.Interaction, current: str) -> TList[app_commands.Choice[str]]: + return await self._auto_realm_complete(interaction, current) + + @member.command("remove") + @commands.guild_only() + @CommandChecks.check_is_ready() + async def member_remove(self, ctx: Context, realm: str, member: Member): + self._logger.debug(__name__, f"Received command realm member remove {ctx}") + + realm = self._realms.find_realm_by_name(realm) + if realm is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.realm_not_found").format(realm), + ) + return + + if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator( + ctx.author.id, realm.id + ): + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.error.not_moderator").format(realm.name), + ) + return + + role = self._realm_utils.find_role_by_name(ctx.guild, realm.name) + if role is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.role_not_found").format(realm.name), + ) + return + + await member.remove_roles(role) + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.member.remove.success").format(member.name, realm.name), + ) + + self._logger.trace(__name__, f"Finished realm remove command") + + @member_remove.autocomplete("realm") + async def remove_autocomplete( + self, interaction: discord.Interaction, current: str + ) -> TList[app_commands.Choice[str]]: + return await self._auto_realm_complete(interaction, current) + + @realm.group(name="moderator") + @commands.guild_only() + async def moderator(self, ctx: Context): + pass + + @moderator.command("add") + @commands.guild_only() + @CommandChecks.check_is_ready() + async def moderator_add(self, ctx: Context, realm: str, moderator: Member): + self._logger.debug(__name__, f"Received command realm moderator add {ctx}") + + realm = self._realms.find_realm_by_name(realm) + if realm is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.realm_not_found").format(realm), + ) + return + + if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(ctx.author.id, realm.id): + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.error.not_moderator").format(realm.name), + ) + return + + role = self._realm_utils.find_role_by_name(ctx.guild, realm.name) + if role is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.role_not_found").format(realm.name), + ) + return + + category = self._realm_utils.find_category_by_name(ctx.guild, realm.name) + await self._realm_utils.assign_moderator(category, moderator) + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.moderator.add.success").format(moderator.name, realm.name), + ) + + self._logger.trace(__name__, f"Finished realm list command") + + @moderator_add.autocomplete("realm") + async def add_autocomplete(self, interaction: discord.Interaction, current: str) -> TList[app_commands.Choice[str]]: + return await self._auto_realm_complete(interaction, current) + + @moderator.command("remove") + @commands.guild_only() + @CommandChecks.check_is_ready() + async def moderator_remove(self, ctx: Context, realm: str, moderator: Member): + self._logger.debug(__name__, f"Received command realm moderator remove {ctx}") + + realm = self._realms.find_realm_by_name(realm) + if realm is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.realm_not_found").format(realm), + ) + return + + if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(ctx.author.id, realm.id): + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.error.not_moderator").format(realm.name), + ) + return + + role = self._realm_utils.find_role_by_name(ctx.guild, realm.name) + if role is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.role_not_found").format(realm.name), + ) + return + + category = self._realm_utils.find_category_by_name(ctx.guild, realm.name) + if category is None: + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.add.error.category_not_found").format(realm.name), + ) + return + + await self._realm_utils.remove_moderator(category, moderator) + await self._message_service.send_ctx_msg( + ctx, + self._t.transform("modules.realm.moderator.remove.success").format(moderator.name, realm.name), + ) + + self._logger.trace(__name__, f"Finished realm remove command") + + @moderator_remove.autocomplete("realm") + async def remove_autocomplete( + self, interaction: discord.Interaction, current: str + ) -> TList[app_commands.Choice[str]]: + return await self._auto_realm_complete(interaction, current) diff --git a/bot/src/modules/realms/realm_utils.py b/bot/src/modules/realms/realm_utils.py new file mode 100644 index 00000000..0df683ed --- /dev/null +++ b/bot/src/modules/realms/realm_utils.py @@ -0,0 +1,79 @@ +from typing import Optional + +import discord +from cpl_discord.container import Role, CategoryChannel +from discord import Guild, Member + +from bot_data.abc.realm_repository_abc import RealmRepositoryABC + + +class RealmUtils: + def __init__(self, realms: RealmRepositoryABC): + self._realms = realms + + @staticmethod + def find_role_by_name(guild: Guild, name: str) -> Optional[Role]: + for role in guild.roles: + if role.name == name: + return Role(role) + return None + + @staticmethod + def find_category_by_name(guild: Guild, name: str) -> Optional[CategoryChannel]: + for category in guild.categories: + if category.name == name: + return CategoryChannel(category) + return None + + @staticmethod + def check_realm_role(guild: Guild, role: Role) -> bool: + return role in guild.roles + + @staticmethod + async def create_category(guild: Guild, name: str, role: Role, leader: Optional[Member]) -> CategoryChannel: + overwrites = { + guild.default_role: discord.PermissionOverwrite(view_channel=False, connect=False), + role: discord.PermissionOverwrite(view_channel=True, connect=True), + } + if leader is not None: + overwrites[leader] = discord.PermissionOverwrite( + view_channel=True, + connect=True, + manage_channels=True, + manage_permissions=True, + create_instant_invite=True, + ) + + if leader.get_role(role.id) is None: + await leader.add_roles(role) + + return await guild.create_category(name, overwrites=overwrites) + + @staticmethod + async def assign_moderator(category: CategoryChannel, member: Member): + await category.set_permissions( + member, + view_channel=True, + connect=True, + manage_channels=True, + manage_permissions=True, + create_instant_invite=True, + ) + + @staticmethod + async def remove_moderator(category: CategoryChannel, member: Member): + await category.set_permissions( + member, + view_channel=True, + connect=True, + manage_channels=False, + manage_permissions=False, + create_instant_invite=False, + ) + + def is_realm_moderator(self, member_id: int, realm_id: int) -> bool: + return ( + self._realms.get_realm_moderators_by_realm_id(realm_id) + .select(lambda x: x.user.discord_id) + .contains(member_id) + ) diff --git a/bot/src/modules/realms/reams.json b/bot/src/modules/realms/reams.json new file mode 100644 index 00000000..624b8d76 --- /dev/null +++ b/bot/src/modules/realms/reams.json @@ -0,0 +1,44 @@ +{ + "ProjectSettings": { + "Name": "private-categories", + "Version": { + "Major": "1", + "Minor": "2", + "Micro": "8" + }, + "Author": "", + "AuthorEmail": "", + "Description": "", + "LongDescription": "", + "URL": "", + "CopyrightDate": "", + "CopyrightName": "", + "LicenseName": "", + "LicenseDescription": "", + "Dependencies": [ + "cpl-core==2022.12.0" + ], + "DevDependencies": [ + "cpl-cli==2022.12.0" + ], + "PythonVersion": ">=3.10.6", + "PythonPath": {}, + "Classifiers": [] + }, + "BuildSettings": { + "ProjectType": "library", + "SourcePath": "", + "OutputPath": "../../dist", + "Main": "private_categories.main", + "EntryPoint": "private_categories", + "IncludePackageData": false, + "Included": [], + "Excluded": [ + "*/__pycache__", + "*/logs", + "*/tests" + ], + "PackageData": {}, + "ProjectReferences": [] + } +} \ No newline at end of file diff --git a/bot/src/modules/realms/reams_module.py b/bot/src/modules/realms/reams_module.py new file mode 100644 index 00000000..f338ef60 --- /dev/null +++ b/bot/src/modules/realms/reams_module.py @@ -0,0 +1,21 @@ +from cpl_core.configuration import ConfigurationABC +from cpl_core.dependency_injection import ServiceCollectionABC +from cpl_core.environment import ApplicationEnvironmentABC +from cpl_discord.service.discord_collection_abc import DiscordCollectionABC + +from bot_core.abc.module_abc import ModuleABC +from bot_core.configuration.feature_flags_enum import FeatureFlagsEnum +from modules.realms.command.realm_group import RealmGroup +from modules.realms.realm_utils import RealmUtils + + +class RealmsModule(ModuleABC): + def __init__(self, dc: DiscordCollectionABC): + ModuleABC.__init__(self, dc, FeatureFlagsEnum.realm_module) + + def configure_configuration(self, config: ConfigurationABC, env: ApplicationEnvironmentABC): + pass + + def configure_services(self, services: ServiceCollectionABC, env: ApplicationEnvironmentABC): + services.add_transient(RealmGroup) + services.add_transient(RealmUtils) From 352ede1667d2bf5a8b0123f2097f1b9f9f73d868 Mon Sep 17 00:00:00 2001 From: edraft Date: Tue, 7 Jan 2025 16:40:26 +0100 Subject: [PATCH 05/13] Fixed realm group #481 --- bot/src/modules/realms/command/realm_group.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bot/src/modules/realms/command/realm_group.py b/bot/src/modules/realms/command/realm_group.py index d563da39..9a24e2a4 100644 --- a/bot/src/modules/realms/command/realm_group.py +++ b/bot/src/modules/realms/command/realm_group.py @@ -366,7 +366,9 @@ class RealmGroup(DiscordCommandABC): ) return - if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(ctx.author.id, realm.id): + if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator( + ctx.author.id, realm.id + ): await self._message_service.send_ctx_msg( ctx, self._t.transform("modules.realm.error.not_moderator").format(realm.name), @@ -408,7 +410,9 @@ class RealmGroup(DiscordCommandABC): ) return - if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator(ctx.author.id, realm.id): + if not self._permissions.is_member_moderator(ctx.author) and not self._realm_utils.is_realm_moderator( + ctx.author.id, realm.id + ): await self._message_service.send_ctx_msg( ctx, self._t.transform("modules.realm.error.not_moderator").format(realm.name), From 6e74e9b190ed91de6a95f09932851dacfcf3775c Mon Sep 17 00:00:00 2001 From: edraft Date: Tue, 7 Jan 2025 17:56:56 +0100 Subject: [PATCH 06/13] Handle category updates #481 --- bot/src/modules/realms/events/__init__.py | 0 .../realms/events/realm_on_channel_update.py | 75 +++++++++++++++++++ bot/src/modules/realms/realm_utils.py | 21 +++++- bot/src/modules/realms/reams_module.py | 6 ++ 4 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 bot/src/modules/realms/events/__init__.py create mode 100644 bot/src/modules/realms/events/realm_on_channel_update.py diff --git a/bot/src/modules/realms/events/__init__.py b/bot/src/modules/realms/events/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/bot/src/modules/realms/events/realm_on_channel_update.py b/bot/src/modules/realms/events/realm_on_channel_update.py new file mode 100644 index 00000000..e636a7be --- /dev/null +++ b/bot/src/modules/realms/events/realm_on_channel_update.py @@ -0,0 +1,75 @@ +import discord +from cpl_core.configuration import ConfigurationABC +from cpl_discord.events import OnGuildChannelUpdateABC +from discord import CategoryChannel + +from bot_core.logging.message_logger import MessageLogger +from bot_data.abc.realm_repository_abc import RealmRepositoryABC +from bot_data.abc.server_repository_abc import ServerRepositoryABC +from bot_data.abc.user_repository_abc import UserRepositoryABC +from bot_data.model.realm_moderator import RealmModerator +from modules.realms.realm_utils import RealmUtils + + +class RealmOnChannelUpdateEvent(OnGuildChannelUpdateABC): + def __init__( + self, + config: ConfigurationABC, + logger: MessageLogger, + servers: ServerRepositoryABC, + users: UserRepositoryABC, + realms: RealmRepositoryABC, + realm_utils: RealmUtils, + ): + OnGuildChannelUpdateABC.__init__(self) + + self._config = config + self._logger = logger + self._servers = servers + self._users = users + self._realms = realms + self._realm_utils = realm_utils + + async def on_guild_channel_update(self, before: discord.abc.GuildChannel, after: discord.abc.GuildChannel): + self._logger.debug(__name__, f"Module {type(self)} started") + + realm = self._realms.find_realm_by_name(before.name) + if realm is None: + return + + if before.name != after.name: + realm.name = after.name + self._realms.update_realm(realm) + role = self._realm_utils.find_role_by_name(after.guild, before.name) + if role is not None: + await role.edit(name=after.name) + + if before.overwrites != after.overwrites: + role = self._realm_utils.get_role_by_name(after.guild, after.name) + if role not in after.overwrites: + await after.set_permissions( + role, + view_channel=True, + connect=True, + manage_channels=True, + manage_permissions=True, + create_instant_invite=True, + ) + + mods = self._realms.get_realm_moderators_by_realm_id(realm.id) + mod_users = mods.select(lambda x: x.user) + for mod in mods: + if mod.user not in after.overwrites: + self._realms.delete_realm_moderator(mod) + + server = self._servers.get_server_by_discord_id(after.guild.id) + for mod in after.overwrites: + if isinstance(mod, discord.Role): + continue + + if mod not in mod_users: + user = self._users.find_user_by_discord_id_and_server_id(mod.id, server.id) + self._realms.add_realm_moderator(RealmModerator(realm, user)) + await self._realm_utils.assign_moderator(after, mod) + + self._logger.debug(__name__, f"Module {type(self)} stopped") diff --git a/bot/src/modules/realms/realm_utils.py b/bot/src/modules/realms/realm_utils.py index 0df683ed..c20fb7c1 100644 --- a/bot/src/modules/realms/realm_utils.py +++ b/bot/src/modules/realms/realm_utils.py @@ -1,8 +1,9 @@ -from typing import Optional +from typing import Optional, Union import discord from cpl_discord.container import Role, CategoryChannel from discord import Guild, Member +from discord.abc import GuildChannel from bot_data.abc.realm_repository_abc import RealmRepositoryABC @@ -18,6 +19,13 @@ class RealmUtils: return Role(role) return None + @staticmethod + def get_role_by_name(guild: Guild, name: str) -> Optional[Role]: + for role in guild.roles: + if role.name == name: + return Role(role) + raise ValueError(f"Role {name} not found") + @staticmethod def find_category_by_name(guild: Guild, name: str) -> Optional[CategoryChannel]: for category in guild.categories: @@ -25,6 +33,13 @@ class RealmUtils: return CategoryChannel(category) return None + @staticmethod + def get_category_by_name(guild: Guild, name: str) -> Optional[CategoryChannel]: + for category in guild.categories: + if category.name == name: + return CategoryChannel(category) + raise ValueError(f"Category {name} not found") + @staticmethod def check_realm_role(guild: Guild, role: Role) -> bool: return role in guild.roles @@ -50,7 +65,7 @@ class RealmUtils: return await guild.create_category(name, overwrites=overwrites) @staticmethod - async def assign_moderator(category: CategoryChannel, member: Member): + async def assign_moderator(category: Union[CategoryChannel, GuildChannel], member: Member): await category.set_permissions( member, view_channel=True, @@ -61,7 +76,7 @@ class RealmUtils: ) @staticmethod - async def remove_moderator(category: CategoryChannel, member: Member): + async def remove_moderator(category: Union[CategoryChannel, GuildChannel], member: Member): await category.set_permissions( member, view_channel=True, diff --git a/bot/src/modules/realms/reams_module.py b/bot/src/modules/realms/reams_module.py index f338ef60..0d5901c9 100644 --- a/bot/src/modules/realms/reams_module.py +++ b/bot/src/modules/realms/reams_module.py @@ -1,11 +1,13 @@ from cpl_core.configuration import ConfigurationABC from cpl_core.dependency_injection import ServiceCollectionABC from cpl_core.environment import ApplicationEnvironmentABC +from cpl_discord.discord_event_types_enum import DiscordEventTypesEnum from cpl_discord.service.discord_collection_abc import DiscordCollectionABC from bot_core.abc.module_abc import ModuleABC from bot_core.configuration.feature_flags_enum import FeatureFlagsEnum from modules.realms.command.realm_group import RealmGroup +from modules.realms.events.realm_on_channel_update import RealmOnChannelUpdateEvent from modules.realms.realm_utils import RealmUtils @@ -19,3 +21,7 @@ class RealmsModule(ModuleABC): def configure_services(self, services: ServiceCollectionABC, env: ApplicationEnvironmentABC): services.add_transient(RealmGroup) services.add_transient(RealmUtils) + services.add_transient( + DiscordEventTypesEnum.on_guild_channel_update.value, + RealmOnChannelUpdateEvent, + ) From 5d30f551fd50e30893efbda6c24021f1e0aa8fe6 Mon Sep 17 00:00:00 2001 From: edraft Date: Tue, 7 Jan 2025 18:24:04 +0100 Subject: [PATCH 07/13] Data integrity check for realms #481 --- .../service/data_integrity_service.py | 6 +++ bot/src/modules/realms/realm_utils.py | 37 ++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/bot/src/bot_core/service/data_integrity_service.py b/bot/src/bot_core/service/data_integrity_service.py index e40bf70d..e3d2bbf1 100644 --- a/bot/src/bot_core/service/data_integrity_service.py +++ b/bot/src/bot_core/service/data_integrity_service.py @@ -27,6 +27,7 @@ from bot_data.model.user_joined_server import UserJoinedServer from bot_data.model.user_joined_voice_channel import UserJoinedVoiceChannel from bot_data.service.user_repository_service import ServerRepositoryABC from modules.achievements.achievement_service import AchievementService +from modules.realms.realm_utils import RealmUtils class DataIntegrityService: @@ -46,6 +47,7 @@ class DataIntegrityService: achievement_service: AchievementService, client_utils: ClientUtilsABC, dtp: DateTimeOffsetPipe, + ream_utils: RealmUtils, ): self._config = config @@ -62,6 +64,7 @@ class DataIntegrityService: self._achievements = achievement_service self._client_utils = client_utils self._dtp = dtp + self._realm_utils = ream_utils self._is_for_shutdown = False @@ -96,6 +99,9 @@ class DataIntegrityService: self._logger.debug(__name__, f"Start check for user got achievements: {g.id}@{m.id}") await self._check_for_user_achievements(u) + self._logger.debug(__name__, f"Start check for user got achievements: {g.id}@{m.id}") + await self._realm_utils.check_integrity(s, g) + for m in [m for m in g.members if m.bot]: u = self._users.find_user_by_discord_id_and_server_id(m.id, s.id) if u is None: diff --git a/bot/src/modules/realms/realm_utils.py b/bot/src/modules/realms/realm_utils.py index c20fb7c1..8b055f5e 100644 --- a/bot/src/modules/realms/realm_utils.py +++ b/bot/src/modules/realms/realm_utils.py @@ -2,14 +2,17 @@ from typing import Optional, Union import discord from cpl_discord.container import Role, CategoryChannel +from cpl_discord.service import DiscordBotServiceABC from discord import Guild, Member from discord.abc import GuildChannel from bot_data.abc.realm_repository_abc import RealmRepositoryABC +from bot_data.model.server import Server class RealmUtils: - def __init__(self, realms: RealmRepositoryABC): + def __init__(self, bot: DiscordBotServiceABC, realms: RealmRepositoryABC): + self._bot = bot self._realms = realms @staticmethod @@ -92,3 +95,35 @@ class RealmUtils: .select(lambda x: x.user.discord_id) .contains(member_id) ) + + async def check_integrity(self, server: Server, guild: Guild): + for realm in self._realms.get_realms_by_server_id(server.id): + category = self.find_category_by_name(guild, realm.name) + if category is None: + await self.create_category(guild, realm.name, realm.role, None) + + role = self.find_role_by_name(guild, realm.name) + if role is None: + await guild.create_role(name=realm.name) + + role = self.get_role_by_name(guild, realm.name) + category = self.get_category_by_name(guild, realm.name) + for mod in self._realms.get_realm_moderators_by_realm_id(realm.id): + member = guild.get_member(mod.user.discord_id) + if member is None: + continue + + if member.get_role(role.id) is None: + await member.add_roles(role) + + if member not in category.overwrites: + await self.assign_moderator(category, member) + + mods = self._realms.get_realm_moderators_by_realm_id(realm.id) + mod_user_ids = mods.select(lambda x: x.user.discord_id) + for mod in category.overwrites: + if isinstance(mod, discord.Role): + continue + + if mod.id not in mod_user_ids: + await self.remove_moderator(category, mod) From f060d62039d2d3195e0860ea409813632abdf0eb Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 14:16:03 +0100 Subject: [PATCH 08/13] Updated builds #481 --- .gitea/workflows/deploy_dev.yaml | 8 ++++---- .gitea/workflows/deploy_prod.yaml | 8 ++++---- .gitea/workflows/deploy_staging.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/deploy_dev.yaml b/.gitea/workflows/deploy_dev.yaml index cb5e7902..61cfaf6a 100644 --- a/.gitea/workflows/deploy_dev.yaml +++ b/.gitea/workflows/deploy_dev.yaml @@ -7,7 +7,7 @@ on: jobs: pre-build: - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Shutdown stack @@ -15,7 +15,7 @@ jobs: build-bot: needs: pre-build - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Setup docker @@ -55,7 +55,7 @@ jobs: build-web: needs: pre-build - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Setup docker @@ -99,7 +99,7 @@ jobs: deploy: needs: [ build-bot, build-web ] - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Clone Repository diff --git a/.gitea/workflows/deploy_prod.yaml b/.gitea/workflows/deploy_prod.yaml index ea0aa6c1..e081e768 100644 --- a/.gitea/workflows/deploy_prod.yaml +++ b/.gitea/workflows/deploy_prod.yaml @@ -7,7 +7,7 @@ on: jobs: pre-build: - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Shutdown stack @@ -15,7 +15,7 @@ jobs: build-bot: needs: pre-build - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Setup docker @@ -55,7 +55,7 @@ jobs: build-web: needs: pre-build - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Setup docker @@ -98,7 +98,7 @@ jobs: deploy: needs: [ build-bot, build-web ] - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Clone Repository diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index e2ed5a3a..1f880a8e 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -7,7 +7,7 @@ on: jobs: pre-build: - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Shutdown stack @@ -15,7 +15,7 @@ jobs: build-bot: needs: pre-build - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Setup docker @@ -55,7 +55,7 @@ jobs: build-web: needs: pre-build - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Setup docker @@ -99,7 +99,7 @@ jobs: deploy: needs: [ build-bot, build-web ] - runs-on: [ dobby.sh-edraft.de, ubuntu-latest ] + runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - name: Clone Repository From 6216bcf9173c98c2bb85bd210653fd88c1be3cd5 Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 14:19:29 +0100 Subject: [PATCH 09/13] Build app #481 --- bot/src/bot/extension/__init__.py | 4 ++-- bot/src/bot_api/__init__.py | 4 ++-- bot/src/bot_api/abc/__init__.py | 4 ++-- bot/src/bot_api/configuration/__init__.py | 4 ++-- bot/src/bot_api/controller/__init__.py | 4 ++-- bot/src/bot_api/event/__init__.py | 4 ++-- bot/src/bot_api/filter/__init__.py | 4 ++-- bot/src/bot_api/filter/discord/__init__.py | 4 ++-- bot/src/bot_api/logging/__init__.py | 4 ++-- bot/src/bot_api/model/__init__.py | 4 ++-- bot/src/bot_api/model/discord/__init__.py | 4 ++-- bot/src/bot_api/route/__init__.py | 4 ++-- bot/src/bot_api/service/__init__.py | 4 ++-- bot/src/bot_api/transformer/__init__.py | 4 ++-- bot/src/bot_core/__init__.py | 4 ++-- bot/src/bot_core/abc/__init__.py | 4 ++-- bot/src/bot_core/configuration/__init__.py | 4 ++-- bot/src/bot_core/core_extension/__init__.py | 4 ++-- bot/src/bot_core/events/__init__.py | 4 ++-- bot/src/bot_core/exception/__init__.py | 4 ++-- bot/src/bot_core/helper/__init__.py | 4 ++-- bot/src/bot_core/logging/__init__.py | 4 ++-- bot/src/bot_core/pipes/__init__.py | 4 ++-- bot/src/bot_core/service/__init__.py | 4 ++-- bot/src/bot_data/__init__.py | 4 ++-- bot/src/bot_data/abc/__init__.py | 4 ++-- bot/src/bot_data/model/__init__.py | 4 ++-- bot/src/bot_data/service/__init__.py | 4 ++-- bot/src/bot_graphql/__init__.py | 4 ++-- bot/src/bot_graphql/abc/__init__.py | 4 ++-- bot/src/bot_graphql/filter/__init__.py | 4 ++-- bot/src/bot_graphql/model/__init__.py | 4 ++-- bot/src/bot_graphql/mutations/__init__.py | 4 ++-- bot/src/bot_graphql/queries/__init__.py | 4 ++-- bot/src/bot_graphql/queries/discord/__init__.py | 4 ++-- bot/src/modules/achievements/__init__.py | 4 ++-- bot/src/modules/achievements/commands/__init__.py | 4 ++-- bot/src/modules/achievements/events/__init__.py | 4 ++-- bot/src/modules/achievements/model/__init__.py | 4 ++-- bot/src/modules/auto_role/__init__.py | 4 ++-- bot/src/modules/auto_role/command/__init__.py | 4 ++-- bot/src/modules/auto_role/events/__init__.py | 4 ++-- bot/src/modules/auto_role/helper/__init__.py | 4 ++-- bot/src/modules/base/__init__.py | 4 ++-- bot/src/modules/base/command/__init__.py | 4 ++-- bot/src/modules/base/events/__init__.py | 4 ++-- bot/src/modules/base/forms/__init__.py | 4 ++-- bot/src/modules/base/helper/__init__.py | 4 ++-- bot/src/modules/base/model/__init__.py | 4 ++-- bot/src/modules/base/service/__init__.py | 4 ++-- bot/src/modules/base/tasks/__init__.py | 4 ++-- bot/src/modules/boot_log/__init__.py | 4 ++-- bot/src/modules/config/__init__.py | 4 ++-- bot/src/modules/config/events/__init__.py | 4 ++-- bot/src/modules/config/service/__init__.py | 4 ++-- bot/src/modules/database/__init__.py | 4 ++-- bot/src/modules/level/__init__.py | 4 ++-- bot/src/modules/level/command/__init__.py | 4 ++-- bot/src/modules/level/configuration/__init__.py | 4 ++-- bot/src/modules/level/events/__init__.py | 4 ++-- bot/src/modules/level/service/__init__.py | 4 ++-- 61 files changed, 122 insertions(+), 122 deletions(-) diff --git a/bot/src/bot/extension/__init__.py b/bot/src/bot/extension/__init__.py index 3bc4b792..3b58944b 100644 --- a/bot/src/bot/extension/__init__.py +++ b/bot/src/bot/extension/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot.extension" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/__init__.py b/bot/src/bot_api/__init__.py index b92fc1c9..2bbe59d2 100644 --- a/bot/src/bot_api/__init__.py +++ b/bot/src/bot_api/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/abc/__init__.py b/bot/src/bot_api/abc/__init__.py index 0029690d..aeead44e 100644 --- a/bot/src/bot_api/abc/__init__.py +++ b/bot/src/bot_api/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.abc" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/configuration/__init__.py b/bot/src/bot_api/configuration/__init__.py index 9b6512a0..e5d9a1b1 100644 --- a/bot/src/bot_api/configuration/__init__.py +++ b/bot/src/bot_api/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.configuration" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/controller/__init__.py b/bot/src/bot_api/controller/__init__.py index 0f3da57f..0c56fd6e 100644 --- a/bot/src/bot_api/controller/__init__.py +++ b/bot/src/bot_api/controller/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.controller" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/event/__init__.py b/bot/src/bot_api/event/__init__.py index d2f6adb6..25c9578c 100644 --- a/bot/src/bot_api/event/__init__.py +++ b/bot/src/bot_api/event/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.event" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/filter/__init__.py b/bot/src/bot_api/filter/__init__.py index 7249b7f9..29db644f 100644 --- a/bot/src/bot_api/filter/__init__.py +++ b/bot/src/bot_api/filter/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.filter" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/filter/discord/__init__.py b/bot/src/bot_api/filter/discord/__init__.py index 480edfe9..62d693cb 100644 --- a/bot/src/bot_api/filter/discord/__init__.py +++ b/bot/src/bot_api/filter/discord/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.filter.discord" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/logging/__init__.py b/bot/src/bot_api/logging/__init__.py index 02d5379b..6b9e7a7c 100644 --- a/bot/src/bot_api/logging/__init__.py +++ b/bot/src/bot_api/logging/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.logging" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/model/__init__.py b/bot/src/bot_api/model/__init__.py index 245f2ac7..b5c3099f 100644 --- a/bot/src/bot_api/model/__init__.py +++ b/bot/src/bot_api/model/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.model" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/model/discord/__init__.py b/bot/src/bot_api/model/discord/__init__.py index 9c01e3bc..433e1595 100644 --- a/bot/src/bot_api/model/discord/__init__.py +++ b/bot/src/bot_api/model/discord/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.model.discord" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/route/__init__.py b/bot/src/bot_api/route/__init__.py index 1fa9c21d..9b3096e9 100644 --- a/bot/src/bot_api/route/__init__.py +++ b/bot/src/bot_api/route/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.route" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/service/__init__.py b/bot/src/bot_api/service/__init__.py index 875aa434..24749fd6 100644 --- a/bot/src/bot_api/service/__init__.py +++ b/bot/src/bot_api/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_api/transformer/__init__.py b/bot/src/bot_api/transformer/__init__.py index 4fac8c96..fbc402d2 100644 --- a/bot/src/bot_api/transformer/__init__.py +++ b/bot/src/bot_api/transformer/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_api.transformer" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/__init__.py b/bot/src/bot_core/__init__.py index c9ea2f89..759026c5 100644 --- a/bot/src/bot_core/__init__.py +++ b/bot/src/bot_core/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/abc/__init__.py b/bot/src/bot_core/abc/__init__.py index d1769a37..ada2b07d 100644 --- a/bot/src/bot_core/abc/__init__.py +++ b/bot/src/bot_core/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.abc" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/configuration/__init__.py b/bot/src/bot_core/configuration/__init__.py index f0cf77c8..84bb335e 100644 --- a/bot/src/bot_core/configuration/__init__.py +++ b/bot/src/bot_core/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.configuration" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/core_extension/__init__.py b/bot/src/bot_core/core_extension/__init__.py index df47842d..c124d971 100644 --- a/bot/src/bot_core/core_extension/__init__.py +++ b/bot/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 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/events/__init__.py b/bot/src/bot_core/events/__init__.py index 6598aa0b..e380cebe 100644 --- a/bot/src/bot_core/events/__init__.py +++ b/bot/src/bot_core/events/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.events" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/exception/__init__.py b/bot/src/bot_core/exception/__init__.py index a58a683e..4fd4f27b 100644 --- a/bot/src/bot_core/exception/__init__.py +++ b/bot/src/bot_core/exception/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.exception" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/helper/__init__.py b/bot/src/bot_core/helper/__init__.py index 134d948d..8c88593e 100644 --- a/bot/src/bot_core/helper/__init__.py +++ b/bot/src/bot_core/helper/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.helper" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/logging/__init__.py b/bot/src/bot_core/logging/__init__.py index 38e28e17..e2d20a52 100644 --- a/bot/src/bot_core/logging/__init__.py +++ b/bot/src/bot_core/logging/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.logging" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/pipes/__init__.py b/bot/src/bot_core/pipes/__init__.py index bf6b07dc..00686ea4 100644 --- a/bot/src/bot_core/pipes/__init__.py +++ b/bot/src/bot_core/pipes/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.pipes" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_core/service/__init__.py b/bot/src/bot_core/service/__init__.py index ad13f0b4..5cf8673f 100644 --- a/bot/src/bot_core/service/__init__.py +++ b/bot/src/bot_core/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_core.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_data/__init__.py b/bot/src/bot_data/__init__.py index 500ccf7d..c5f29546 100644 --- a/bot/src/bot_data/__init__.py +++ b/bot/src/bot_data/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_data" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_data/abc/__init__.py b/bot/src/bot_data/abc/__init__.py index 1e7e321a..f6346936 100644 --- a/bot/src/bot_data/abc/__init__.py +++ b/bot/src/bot_data/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_data.abc" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_data/model/__init__.py b/bot/src/bot_data/model/__init__.py index 6350dee2..66732468 100644 --- a/bot/src/bot_data/model/__init__.py +++ b/bot/src/bot_data/model/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_data.model" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_data/service/__init__.py b/bot/src/bot_data/service/__init__.py index f58228bf..73cd95a7 100644 --- a/bot/src/bot_data/service/__init__.py +++ b/bot/src/bot_data/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_data.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/__init__.py b/bot/src/bot_graphql/__init__.py index db43a23f..84cde4c9 100644 --- a/bot/src/bot_graphql/__init__.py +++ b/bot/src/bot_graphql/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/abc/__init__.py b/bot/src/bot_graphql/abc/__init__.py index 5d70ba23..eb8e236c 100644 --- a/bot/src/bot_graphql/abc/__init__.py +++ b/bot/src/bot_graphql/abc/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql.abc" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/filter/__init__.py b/bot/src/bot_graphql/filter/__init__.py index 480ad53a..64767335 100644 --- a/bot/src/bot_graphql/filter/__init__.py +++ b/bot/src/bot_graphql/filter/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql.filter" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/model/__init__.py b/bot/src/bot_graphql/model/__init__.py index 2e3ef392..29b9d7f7 100644 --- a/bot/src/bot_graphql/model/__init__.py +++ b/bot/src/bot_graphql/model/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql.model" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/mutations/__init__.py b/bot/src/bot_graphql/mutations/__init__.py index 54b0371b..3d956bd7 100644 --- a/bot/src/bot_graphql/mutations/__init__.py +++ b/bot/src/bot_graphql/mutations/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql.mutations" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/queries/__init__.py b/bot/src/bot_graphql/queries/__init__.py index 1a2fe384..06dec737 100644 --- a/bot/src/bot_graphql/queries/__init__.py +++ b/bot/src/bot_graphql/queries/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql.queries" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/bot_graphql/queries/discord/__init__.py b/bot/src/bot_graphql/queries/discord/__init__.py index cae32b89..b8f5d57a 100644 --- a/bot/src/bot_graphql/queries/discord/__init__.py +++ b/bot/src/bot_graphql/queries/discord/__init__.py @@ -15,7 +15,7 @@ __title__ = "bot_graphql.queries.discord" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/achievements/__init__.py b/bot/src/modules/achievements/__init__.py index 4d9e23a5..68e7ab9e 100644 --- a/bot/src/modules/achievements/__init__.py +++ b/bot/src/modules/achievements/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.achievements" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/achievements/commands/__init__.py b/bot/src/modules/achievements/commands/__init__.py index 8eed285c..8a313074 100644 --- a/bot/src/modules/achievements/commands/__init__.py +++ b/bot/src/modules/achievements/commands/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.achievements.commands" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/achievements/events/__init__.py b/bot/src/modules/achievements/events/__init__.py index 61513c27..9919053f 100644 --- a/bot/src/modules/achievements/events/__init__.py +++ b/bot/src/modules/achievements/events/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.achievements.events" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/achievements/model/__init__.py b/bot/src/modules/achievements/model/__init__.py index f0a906e7..87ffc6ff 100644 --- a/bot/src/modules/achievements/model/__init__.py +++ b/bot/src/modules/achievements/model/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.achievements.model" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/auto_role/__init__.py b/bot/src/modules/auto_role/__init__.py index 448cba17..c71f8072 100644 --- a/bot/src/modules/auto_role/__init__.py +++ b/bot/src/modules/auto_role/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.auto_role" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/auto_role/command/__init__.py b/bot/src/modules/auto_role/command/__init__.py index f00ec6b7..d70e5239 100644 --- a/bot/src/modules/auto_role/command/__init__.py +++ b/bot/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 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/auto_role/events/__init__.py b/bot/src/modules/auto_role/events/__init__.py index e192433e..ad1258c3 100644 --- a/bot/src/modules/auto_role/events/__init__.py +++ b/bot/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 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/auto_role/helper/__init__.py b/bot/src/modules/auto_role/helper/__init__.py index 7ce856fe..d82e3f60 100644 --- a/bot/src/modules/auto_role/helper/__init__.py +++ b/bot/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 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/__init__.py b/bot/src/modules/base/__init__.py index e086d6e8..a9166626 100644 --- a/bot/src/modules/base/__init__.py +++ b/bot/src/modules/base/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/command/__init__.py b/bot/src/modules/base/command/__init__.py index b3e469ea..59120cf0 100644 --- a/bot/src/modules/base/command/__init__.py +++ b/bot/src/modules/base/command/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.command" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/events/__init__.py b/bot/src/modules/base/events/__init__.py index 24afa605..1197be54 100644 --- a/bot/src/modules/base/events/__init__.py +++ b/bot/src/modules/base/events/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.events" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/forms/__init__.py b/bot/src/modules/base/forms/__init__.py index 82a953fa..edd3e70c 100644 --- a/bot/src/modules/base/forms/__init__.py +++ b/bot/src/modules/base/forms/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.forms" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/helper/__init__.py b/bot/src/modules/base/helper/__init__.py index b34aee0b..bbf09627 100644 --- a/bot/src/modules/base/helper/__init__.py +++ b/bot/src/modules/base/helper/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.helper" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/model/__init__.py b/bot/src/modules/base/model/__init__.py index 8d24c846..4070d89f 100644 --- a/bot/src/modules/base/model/__init__.py +++ b/bot/src/modules/base/model/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.model" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/service/__init__.py b/bot/src/modules/base/service/__init__.py index 14ccaa6d..9c2048b6 100644 --- a/bot/src/modules/base/service/__init__.py +++ b/bot/src/modules/base/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/base/tasks/__init__.py b/bot/src/modules/base/tasks/__init__.py index e96231b9..7f84432b 100644 --- a/bot/src/modules/base/tasks/__init__.py +++ b/bot/src/modules/base/tasks/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.base.tasks" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/boot_log/__init__.py b/bot/src/modules/boot_log/__init__.py index 37c61048..4bc06418 100644 --- a/bot/src/modules/boot_log/__init__.py +++ b/bot/src/modules/boot_log/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.boot_log" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/config/__init__.py b/bot/src/modules/config/__init__.py index 7841f614..f84c43b8 100644 --- a/bot/src/modules/config/__init__.py +++ b/bot/src/modules/config/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.config" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/config/events/__init__.py b/bot/src/modules/config/events/__init__.py index 9e5ba995..07c6504c 100644 --- a/bot/src/modules/config/events/__init__.py +++ b/bot/src/modules/config/events/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.config.events" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/config/service/__init__.py b/bot/src/modules/config/service/__init__.py index c1202bca..f55a947b 100644 --- a/bot/src/modules/config/service/__init__.py +++ b/bot/src/modules/config/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.config.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/database/__init__.py b/bot/src/modules/database/__init__.py index 692367c2..655a9407 100644 --- a/bot/src/modules/database/__init__.py +++ b/bot/src/modules/database/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.database" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/level/__init__.py b/bot/src/modules/level/__init__.py index adc9d0e5..bbc03958 100644 --- a/bot/src/modules/level/__init__.py +++ b/bot/src/modules/level/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.level" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/level/command/__init__.py b/bot/src/modules/level/command/__init__.py index 7deb4c6d..b30d4e00 100644 --- a/bot/src/modules/level/command/__init__.py +++ b/bot/src/modules/level/command/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.level.command" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/level/configuration/__init__.py b/bot/src/modules/level/configuration/__init__.py index 6238de17..bce442a2 100644 --- a/bot/src/modules/level/configuration/__init__.py +++ b/bot/src/modules/level/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.level.configuration" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/level/events/__init__.py b/bot/src/modules/level/events/__init__.py index fe7756a1..1e88cd92 100644 --- a/bot/src/modules/level/events/__init__.py +++ b/bot/src/modules/level/events/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.level.events" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/level/service/__init__.py b/bot/src/modules/level/service/__init__.py index 198a8eb0..dda5ebc4 100644 --- a/bot/src/modules/level/service/__init__.py +++ b/bot/src/modules/level/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.level.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") From 5a31ea5f764bf0e08b51bd25bfef6962af2dae98 Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 14:20:49 +0100 Subject: [PATCH 10/13] Set cpl version #481 --- bot/src/bot_api/bot-api.json | 2 +- bot/src/bot_core/bot-core.json | 2 +- bot/src/bot_data/bot-data.json | 2 +- bot/src/bot_graphql/bot-graphql.json | 2 +- bot/src/modules/achievements/achievements.json | 2 +- bot/src/modules/auto_role/auto-role.json | 2 +- bot/src/modules/base/base.json | 2 +- bot/src/modules/boot_log/boot-log.json | 2 +- bot/src/modules/config/config.json | 2 +- bot/src/modules/database/database.json | 2 +- bot/src/modules/level/level.json | 2 +- bot/src/modules/realms/reams.json | 2 +- bot/src/modules/short_role_name/short-role-name.json | 2 +- bot/src/modules/special_offers/special-offers.json | 2 +- bot/src/modules/technician/technician.json | 2 +- bot/tools/checks/checks.json | 2 +- bot/tools/get_version/get-version.json | 2 +- bot/tools/migration_to_sql/migration-to-sql.json | 2 +- bot/tools/post_build/post-build.json | 2 +- bot/tools/set_version/set-version.json | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bot/src/bot_api/bot-api.json b/bot/src/bot_api/bot-api.json index 8567eca4..e776186c 100644 --- a/bot/src/bot_api/bot-api.json +++ b/bot/src/bot_api/bot-api.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/bot_core/bot-core.json b/bot/src/bot_core/bot-core.json index 4abb52c9..f96f9bae 100644 --- a/bot/src/bot_core/bot-core.json +++ b/bot/src/bot_core/bot-core.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/src/bot_data/bot-data.json b/bot/src/bot_data/bot-data.json index a7b0999f..345a82c6 100644 --- a/bot/src/bot_data/bot-data.json +++ b/bot/src/bot_data/bot-data.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/src/bot_graphql/bot-graphql.json b/bot/src/bot_graphql/bot-graphql.json index 6ba826cd..298a160a 100644 --- a/bot/src/bot_graphql/bot-graphql.json +++ b/bot/src/bot_graphql/bot-graphql.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/src/modules/achievements/achievements.json b/bot/src/modules/achievements/achievements.json index cf57f7b6..3d0edd52 100644 --- a/bot/src/modules/achievements/achievements.json +++ b/bot/src/modules/achievements/achievements.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/src/modules/auto_role/auto-role.json b/bot/src/modules/auto_role/auto-role.json index d50a714d..1fbd79aa 100644 --- a/bot/src/modules/auto_role/auto-role.json +++ b/bot/src/modules/auto_role/auto-role.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/base/base.json b/bot/src/modules/base/base.json index ce20f649..f574b53b 100644 --- a/bot/src/modules/base/base.json +++ b/bot/src/modules/base/base.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/boot_log/boot-log.json b/bot/src/modules/boot_log/boot-log.json index 6e2ff722..7ed82fbc 100644 --- a/bot/src/modules/boot_log/boot-log.json +++ b/bot/src/modules/boot_log/boot-log.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/config/config.json b/bot/src/modules/config/config.json index 6f481dd8..f31c401d 100644 --- a/bot/src/modules/config/config.json +++ b/bot/src/modules/config/config.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/database/database.json b/bot/src/modules/database/database.json index cdbc3a33..ff307af7 100644 --- a/bot/src/modules/database/database.json +++ b/bot/src/modules/database/database.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/src/modules/level/level.json b/bot/src/modules/level/level.json index 4c6571d9..978dcee4 100644 --- a/bot/src/modules/level/level.json +++ b/bot/src/modules/level/level.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/realms/reams.json b/bot/src/modules/realms/reams.json index 624b8d76..bfd1a660 100644 --- a/bot/src/modules/realms/reams.json +++ b/bot/src/modules/realms/reams.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/short_role_name/short-role-name.json b/bot/src/modules/short_role_name/short-role-name.json index 2eda5832..4fd11fd8 100644 --- a/bot/src/modules/short_role_name/short-role-name.json +++ b/bot/src/modules/short_role_name/short-role-name.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/special_offers/special-offers.json b/bot/src/modules/special_offers/special-offers.json index ade43b0b..a5616300 100644 --- a/bot/src/modules/special_offers/special-offers.json +++ b/bot/src/modules/special_offers/special-offers.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/src/modules/technician/technician.json b/bot/src/modules/technician/technician.json index 37bfacf2..cdd72050 100644 --- a/bot/src/modules/technician/technician.json +++ b/bot/src/modules/technician/technician.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/tools/checks/checks.json b/bot/tools/checks/checks.json index d9f7165f..3526f0fa 100644 --- a/bot/tools/checks/checks.json +++ b/bot/tools/checks/checks.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/tools/get_version/get-version.json b/bot/tools/get_version/get-version.json index f1d57d66..f4163a41 100644 --- a/bot/tools/get_version/get-version.json +++ b/bot/tools/get_version/get-version.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/tools/migration_to_sql/migration-to-sql.json b/bot/tools/migration_to_sql/migration-to-sql.json index e64838eb..bc3d4c8c 100644 --- a/bot/tools/migration_to_sql/migration-to-sql.json +++ b/bot/tools/migration_to_sql/migration-to-sql.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "", "AuthorEmail": "", diff --git a/bot/tools/post_build/post-build.json b/bot/tools/post_build/post-build.json index cd3a05cd..72d871c3 100644 --- a/bot/tools/post_build/post-build.json +++ b/bot/tools/post_build/post-build.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/bot/tools/set_version/set-version.json b/bot/tools/set_version/set-version.json index dc604d30..0538fc40 100644 --- a/bot/tools/set_version/set-version.json +++ b/bot/tools/set_version/set-version.json @@ -4,7 +4,7 @@ "Version": { "Major": "1", "Minor": "2", - "Micro": "8" + "Micro": "9" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", From 09c8f41b05ebc8da09a3017dc7a253a7da6aca63 Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 14:26:26 +0100 Subject: [PATCH 11/13] Removed docker build --- .gitea/workflows/deploy_dev.yaml | 8 -------- .gitea/workflows/deploy_prod.yaml | 8 -------- .gitea/workflows/deploy_staging.yaml | 8 -------- 3 files changed, 24 deletions(-) diff --git a/.gitea/workflows/deploy_dev.yaml b/.gitea/workflows/deploy_dev.yaml index 61cfaf6a..33250c8d 100644 --- a/.gitea/workflows/deploy_dev.yaml +++ b/.gitea/workflows/deploy_dev.yaml @@ -18,10 +18,6 @@ jobs: runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - - name: Setup docker - uses: https://github.com/papodaca/install-docker-action@main - - run: docker -v - - name: Clone Repository uses: https://github.com/actions/checkout@v3 with: @@ -58,10 +54,6 @@ jobs: runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - - name: Setup docker - uses: https://github.com/papodaca/install-docker-action@main - - run: docker -v - - name: Clone Repository uses: https://github.com/actions/checkout@v3 with: diff --git a/.gitea/workflows/deploy_prod.yaml b/.gitea/workflows/deploy_prod.yaml index e081e768..174f3310 100644 --- a/.gitea/workflows/deploy_prod.yaml +++ b/.gitea/workflows/deploy_prod.yaml @@ -18,10 +18,6 @@ jobs: runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - - name: Setup docker - uses: https://github.com/papodaca/install-docker-action@main - - run: docker -v - - name: Clone Repository uses: https://github.com/actions/checkout@v3 with: @@ -58,10 +54,6 @@ jobs: runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - - name: Setup docker - uses: https://github.com/papodaca/install-docker-action@main - - run: docker -v - - name: Clone Repository uses: https://github.com/actions/checkout@v3 with: diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index 1f880a8e..6013e2b5 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -18,10 +18,6 @@ jobs: runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - - name: Setup docker - uses: https://github.com/papodaca/install-docker-action@main - - run: docker -v - - name: Clone Repository uses: https://github.com/actions/checkout@v3 with: @@ -58,10 +54,6 @@ jobs: runs-on: [ dobby ] container: git.sh-edraft.de/sh-edraft.de/act-runner:latest steps: - - name: Setup docker - uses: https://github.com/papodaca/install-docker-action@main - - run: docker -v - - name: Clone Repository uses: https://github.com/actions/checkout@v3 with: From e5b03e721921dda2e1a5758e99036a3a5fbf5d47 Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 14:35:39 +0100 Subject: [PATCH 12/13] Added project structure --- bot/cpl-workspace.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/cpl-workspace.json b/bot/cpl-workspace.json index 8061d025..c8456198 100644 --- a/bot/cpl-workspace.json +++ b/bot/cpl-workspace.json @@ -14,6 +14,7 @@ "config": "src/modules/config/config.json", "database": "src/modules/database/database.json", "level": "src/modules/level/level.json", + "realms": "src/modules/realms/realms.json", "technician": "src/modules/technician/technician.json", "short-role-name": "src/modules/short_role_name/short-role-name.json", "special-offers": "src/modules/special_offers/special-offers.json", From 614a60bd2b21bc7d409bc8102cf579e8d03492d6 Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 14:59:58 +0100 Subject: [PATCH 13/13] Fixed project structure --- bot/src/bot/__init__.py | 14 +++++----- bot/src/bot/extension/__init__.py | 14 +++++----- bot/src/bot_api/__init__.py | 14 +++++----- bot/src/bot_api/abc/__init__.py | 14 +++++----- bot/src/bot_api/configuration/__init__.py | 14 +++++----- bot/src/bot_api/controller/__init__.py | 14 +++++----- bot/src/bot_api/event/__init__.py | 14 +++++----- bot/src/bot_api/filter/__init__.py | 14 +++++----- bot/src/bot_api/filter/discord/__init__.py | 14 +++++----- bot/src/bot_api/logging/__init__.py | 14 +++++----- bot/src/bot_api/model/__init__.py | 14 +++++----- bot/src/bot_api/model/discord/__init__.py | 14 +++++----- bot/src/bot_api/route/__init__.py | 14 +++++----- bot/src/bot_api/service/__init__.py | 14 +++++----- bot/src/bot_api/transformer/__init__.py | 14 +++++----- bot/src/bot_core/__init__.py | 14 +++++----- bot/src/bot_core/abc/__init__.py | 14 +++++----- bot/src/bot_core/configuration/__init__.py | 14 +++++----- bot/src/bot_core/core_extension/__init__.py | 14 +++++----- bot/src/bot_core/events/__init__.py | 14 +++++----- bot/src/bot_core/exception/__init__.py | 14 +++++----- bot/src/bot_core/helper/__init__.py | 14 +++++----- bot/src/bot_core/logging/__init__.py | 14 +++++----- bot/src/bot_core/pipes/__init__.py | 14 +++++----- bot/src/bot_core/service/__init__.py | 14 +++++----- bot/src/bot_data/__init__.py | 14 +++++----- bot/src/bot_data/abc/__init__.py | 14 +++++----- bot/src/bot_data/model/__init__.py | 14 +++++----- bot/src/bot_data/service/__init__.py | 14 +++++----- bot/src/bot_graphql/__init__.py | 14 +++++----- bot/src/bot_graphql/abc/__init__.py | 14 +++++----- bot/src/bot_graphql/filter/__init__.py | 14 +++++----- bot/src/bot_graphql/model/__init__.py | 14 +++++----- bot/src/bot_graphql/mutations/__init__.py | 14 +++++----- bot/src/bot_graphql/queries/__init__.py | 14 +++++----- .../bot_graphql/queries/discord/__init__.py | 14 +++++----- bot/src/modules/achievements/__init__.py | 14 +++++----- .../modules/achievements/commands/__init__.py | 14 +++++----- .../modules/achievements/events/__init__.py | 14 +++++----- .../modules/achievements/model/__init__.py | 14 +++++----- bot/src/modules/auto_role/__init__.py | 14 +++++----- bot/src/modules/auto_role/command/__init__.py | 14 +++++----- bot/src/modules/auto_role/events/__init__.py | 14 +++++----- bot/src/modules/auto_role/helper/__init__.py | 14 +++++----- bot/src/modules/base/__init__.py | 14 +++++----- bot/src/modules/base/command/__init__.py | 14 +++++----- bot/src/modules/base/events/__init__.py | 14 +++++----- bot/src/modules/base/forms/__init__.py | 14 +++++----- bot/src/modules/base/helper/__init__.py | 14 +++++----- bot/src/modules/base/model/__init__.py | 14 +++++----- bot/src/modules/base/service/__init__.py | 14 +++++----- bot/src/modules/base/tasks/__init__.py | 14 +++++----- bot/src/modules/boot_log/__init__.py | 14 +++++----- bot/src/modules/config/__init__.py | 14 +++++----- bot/src/modules/config/events/__init__.py | 14 +++++----- bot/src/modules/config/service/__init__.py | 14 +++++----- bot/src/modules/database/__init__.py | 14 +++++----- bot/src/modules/level/__init__.py | 14 +++++----- bot/src/modules/level/command/__init__.py | 14 +++++----- .../modules/level/configuration/__init__.py | 14 +++++----- bot/src/modules/level/events/__init__.py | 14 +++++----- bot/src/modules/level/service/__init__.py | 14 +++++----- bot/src/modules/realms/__init__.py | 26 +++++++++++++++++++ bot/src/modules/realms/command/__init__.py | 26 +++++++++++++++++++ bot/src/modules/realms/events/__init__.py | 26 +++++++++++++++++++ .../realms/{reams.json => realms.json} | 10 +++---- bot/src/modules/short_role_name/__init__.py | 4 +-- .../short_role_name/events/__init__.py | 4 +-- .../short_role_name/service/__init__.py | 4 +-- bot/src/modules/special_offers/__init__.py | 4 +-- bot/src/modules/technician/__init__.py | 4 +-- .../modules/technician/command/__init__.py | 4 +-- 72 files changed, 529 insertions(+), 451 deletions(-) rename bot/src/modules/realms/{reams.json => realms.json} (81%) diff --git a/bot/src/bot/__init__.py b/bot/src/bot/__init__.py index 8b7b2776..2aad501a 100644 --- a/bot/src/bot/__init__.py +++ b/bot/src/bot/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot/extension/__init__.py b/bot/src/bot/extension/__init__.py index 3b58944b..8aa78bc6 100644 --- a/bot/src/bot/extension/__init__.py +++ b/bot/src/bot/extension/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot.extension" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot.extension' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/__init__.py b/bot/src/bot_api/__init__.py index 2bbe59d2..0e8d9fed 100644 --- a/bot/src/bot_api/__init__.py +++ b/bot/src/bot_api/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/abc/__init__.py b/bot/src/bot_api/abc/__init__.py index aeead44e..8999dc59 100644 --- a/bot/src/bot_api/abc/__init__.py +++ b/bot/src/bot_api/abc/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.abc" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/configuration/__init__.py b/bot/src/bot_api/configuration/__init__.py index e5d9a1b1..952d8840 100644 --- a/bot/src/bot_api/configuration/__init__.py +++ b/bot/src/bot_api/configuration/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.configuration" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/controller/__init__.py b/bot/src/bot_api/controller/__init__.py index 0c56fd6e..09a838a7 100644 --- a/bot/src/bot_api/controller/__init__.py +++ b/bot/src/bot_api/controller/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.controller" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.controller' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/event/__init__.py b/bot/src/bot_api/event/__init__.py index 25c9578c..7205d697 100644 --- a/bot/src/bot_api/event/__init__.py +++ b/bot/src/bot_api/event/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.event" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.event' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/filter/__init__.py b/bot/src/bot_api/filter/__init__.py index 29db644f..23bb4853 100644 --- a/bot/src/bot_api/filter/__init__.py +++ b/bot/src/bot_api/filter/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.filter" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.filter' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/filter/discord/__init__.py b/bot/src/bot_api/filter/discord/__init__.py index 62d693cb..f5a176f7 100644 --- a/bot/src/bot_api/filter/discord/__init__.py +++ b/bot/src/bot_api/filter/discord/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.filter.discord" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.filter.discord' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/logging/__init__.py b/bot/src/bot_api/logging/__init__.py index 6b9e7a7c..abb62b4b 100644 --- a/bot/src/bot_api/logging/__init__.py +++ b/bot/src/bot_api/logging/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.logging" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.logging' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/model/__init__.py b/bot/src/bot_api/model/__init__.py index b5c3099f..ff073556 100644 --- a/bot/src/bot_api/model/__init__.py +++ b/bot/src/bot_api/model/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.model" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.model' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/model/discord/__init__.py b/bot/src/bot_api/model/discord/__init__.py index 433e1595..47347fe7 100644 --- a/bot/src/bot_api/model/discord/__init__.py +++ b/bot/src/bot_api/model/discord/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.model.discord" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.model.discord' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/route/__init__.py b/bot/src/bot_api/route/__init__.py index 9b3096e9..c60ea51e 100644 --- a/bot/src/bot_api/route/__init__.py +++ b/bot/src/bot_api/route/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.route" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.route' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/service/__init__.py b/bot/src/bot_api/service/__init__.py index 24749fd6..9e459241 100644 --- a/bot/src/bot_api/service/__init__.py +++ b/bot/src/bot_api/service/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_api/transformer/__init__.py b/bot/src/bot_api/transformer/__init__.py index fbc402d2..92030b2a 100644 --- a/bot/src/bot_api/transformer/__init__.py +++ b/bot/src/bot_api/transformer/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_api.transformer" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_api.transformer' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/__init__.py b/bot/src/bot_core/__init__.py index 759026c5..2b7bbb62 100644 --- a/bot/src/bot_core/__init__.py +++ b/bot/src/bot_core/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/abc/__init__.py b/bot/src/bot_core/abc/__init__.py index ada2b07d..e484b78f 100644 --- a/bot/src/bot_core/abc/__init__.py +++ b/bot/src/bot_core/abc/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.abc" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/configuration/__init__.py b/bot/src/bot_core/configuration/__init__.py index 84bb335e..f5411623 100644 --- a/bot/src/bot_core/configuration/__init__.py +++ b/bot/src/bot_core/configuration/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.configuration" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/core_extension/__init__.py b/bot/src/bot_core/core_extension/__init__.py index c124d971..c3311e82 100644 --- a/bot/src/bot_core/core_extension/__init__.py +++ b/bot/src/bot_core/core_extension/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.core_extension" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.core_extension' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/events/__init__.py b/bot/src/bot_core/events/__init__.py index e380cebe..ce0a328d 100644 --- a/bot/src/bot_core/events/__init__.py +++ b/bot/src/bot_core/events/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/exception/__init__.py b/bot/src/bot_core/exception/__init__.py index 4fd4f27b..63d4a826 100644 --- a/bot/src/bot_core/exception/__init__.py +++ b/bot/src/bot_core/exception/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.exception" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.exception' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/helper/__init__.py b/bot/src/bot_core/helper/__init__.py index 8c88593e..618b9d83 100644 --- a/bot/src/bot_core/helper/__init__.py +++ b/bot/src/bot_core/helper/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.helper" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.helper' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/logging/__init__.py b/bot/src/bot_core/logging/__init__.py index e2d20a52..7fe64fbb 100644 --- a/bot/src/bot_core/logging/__init__.py +++ b/bot/src/bot_core/logging/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.logging" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.logging' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/pipes/__init__.py b/bot/src/bot_core/pipes/__init__.py index 00686ea4..6c4657f0 100644 --- a/bot/src/bot_core/pipes/__init__.py +++ b/bot/src/bot_core/pipes/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.pipes" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.pipes' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_core/service/__init__.py b/bot/src/bot_core/service/__init__.py index 5cf8673f..5a079cdf 100644 --- a/bot/src/bot_core/service/__init__.py +++ b/bot/src/bot_core/service/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_core.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_core.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_data/__init__.py b/bot/src/bot_data/__init__.py index c5f29546..d8aefdd7 100644 --- a/bot/src/bot_data/__init__.py +++ b/bot/src/bot_data/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_data" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_data' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_data/abc/__init__.py b/bot/src/bot_data/abc/__init__.py index f6346936..030fded7 100644 --- a/bot/src/bot_data/abc/__init__.py +++ b/bot/src/bot_data/abc/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_data.abc" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_data.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_data/model/__init__.py b/bot/src/bot_data/model/__init__.py index 66732468..28d35bc5 100644 --- a/bot/src/bot_data/model/__init__.py +++ b/bot/src/bot_data/model/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_data.model" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_data.model' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_data/service/__init__.py b/bot/src/bot_data/service/__init__.py index 73cd95a7..4c10f868 100644 --- a/bot/src/bot_data/service/__init__.py +++ b/bot/src/bot_data/service/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_data.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_data.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/__init__.py b/bot/src/bot_graphql/__init__.py index 84cde4c9..452fa9b9 100644 --- a/bot/src/bot_graphql/__init__.py +++ b/bot/src/bot_graphql/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/abc/__init__.py b/bot/src/bot_graphql/abc/__init__.py index eb8e236c..80dbdbe8 100644 --- a/bot/src/bot_graphql/abc/__init__.py +++ b/bot/src/bot_graphql/abc/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql.abc" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/filter/__init__.py b/bot/src/bot_graphql/filter/__init__.py index 64767335..6a41770e 100644 --- a/bot/src/bot_graphql/filter/__init__.py +++ b/bot/src/bot_graphql/filter/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql.filter" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql.filter' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/model/__init__.py b/bot/src/bot_graphql/model/__init__.py index 29b9d7f7..da1dd768 100644 --- a/bot/src/bot_graphql/model/__init__.py +++ b/bot/src/bot_graphql/model/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql.model" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql.model' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/mutations/__init__.py b/bot/src/bot_graphql/mutations/__init__.py index 3d956bd7..27671247 100644 --- a/bot/src/bot_graphql/mutations/__init__.py +++ b/bot/src/bot_graphql/mutations/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql.mutations" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql.mutations' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/queries/__init__.py b/bot/src/bot_graphql/queries/__init__.py index 06dec737..bcf8594f 100644 --- a/bot/src/bot_graphql/queries/__init__.py +++ b/bot/src/bot_graphql/queries/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql.queries" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql.queries' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/bot_graphql/queries/discord/__init__.py b/bot/src/bot_graphql/queries/discord/__init__.py index b8f5d57a..1a8b8f8c 100644 --- a/bot/src/bot_graphql/queries/discord/__init__.py +++ b/bot/src/bot_graphql/queries/discord/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "bot_graphql.queries.discord" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'bot_graphql.queries.discord' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/achievements/__init__.py b/bot/src/modules/achievements/__init__.py index 68e7ab9e..d6681437 100644 --- a/bot/src/modules/achievements/__init__.py +++ b/bot/src/modules/achievements/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.achievements" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.achievements' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/achievements/commands/__init__.py b/bot/src/modules/achievements/commands/__init__.py index 8a313074..dfe94f4c 100644 --- a/bot/src/modules/achievements/commands/__init__.py +++ b/bot/src/modules/achievements/commands/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.achievements.commands" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.achievements.commands' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/achievements/events/__init__.py b/bot/src/modules/achievements/events/__init__.py index 9919053f..4599a899 100644 --- a/bot/src/modules/achievements/events/__init__.py +++ b/bot/src/modules/achievements/events/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.achievements.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.achievements.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/achievements/model/__init__.py b/bot/src/modules/achievements/model/__init__.py index 87ffc6ff..0451c2fd 100644 --- a/bot/src/modules/achievements/model/__init__.py +++ b/bot/src/modules/achievements/model/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.achievements.model" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.achievements.model' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/auto_role/__init__.py b/bot/src/modules/auto_role/__init__.py index c71f8072..4585ba18 100644 --- a/bot/src/modules/auto_role/__init__.py +++ b/bot/src/modules/auto_role/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.auto_role" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.auto_role' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/auto_role/command/__init__.py b/bot/src/modules/auto_role/command/__init__.py index d70e5239..6b777985 100644 --- a/bot/src/modules/auto_role/command/__init__.py +++ b/bot/src/modules/auto_role/command/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.auto_role.command" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.auto_role.command' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/auto_role/events/__init__.py b/bot/src/modules/auto_role/events/__init__.py index ad1258c3..051ae4d0 100644 --- a/bot/src/modules/auto_role/events/__init__.py +++ b/bot/src/modules/auto_role/events/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.auto_role.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.auto_role.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/auto_role/helper/__init__.py b/bot/src/modules/auto_role/helper/__init__.py index d82e3f60..215a5712 100644 --- a/bot/src/modules/auto_role/helper/__init__.py +++ b/bot/src/modules/auto_role/helper/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.auto_role.helper" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.auto_role.helper' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/__init__.py b/bot/src/modules/base/__init__.py index a9166626..977a9bde 100644 --- a/bot/src/modules/base/__init__.py +++ b/bot/src/modules/base/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/command/__init__.py b/bot/src/modules/base/command/__init__.py index 59120cf0..5acfcab0 100644 --- a/bot/src/modules/base/command/__init__.py +++ b/bot/src/modules/base/command/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.command" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.command' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/events/__init__.py b/bot/src/modules/base/events/__init__.py index 1197be54..07cfb92e 100644 --- a/bot/src/modules/base/events/__init__.py +++ b/bot/src/modules/base/events/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/forms/__init__.py b/bot/src/modules/base/forms/__init__.py index edd3e70c..4f3623ff 100644 --- a/bot/src/modules/base/forms/__init__.py +++ b/bot/src/modules/base/forms/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.forms" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.forms' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/helper/__init__.py b/bot/src/modules/base/helper/__init__.py index bbf09627..abc2e672 100644 --- a/bot/src/modules/base/helper/__init__.py +++ b/bot/src/modules/base/helper/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.helper" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.helper' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/model/__init__.py b/bot/src/modules/base/model/__init__.py index 4070d89f..dfae309a 100644 --- a/bot/src/modules/base/model/__init__.py +++ b/bot/src/modules/base/model/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.model" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.model' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/service/__init__.py b/bot/src/modules/base/service/__init__.py index 9c2048b6..3fc0df9a 100644 --- a/bot/src/modules/base/service/__init__.py +++ b/bot/src/modules/base/service/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/base/tasks/__init__.py b/bot/src/modules/base/tasks/__init__.py index 7f84432b..b494e767 100644 --- a/bot/src/modules/base/tasks/__init__.py +++ b/bot/src/modules/base/tasks/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.base.tasks" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.base.tasks' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/boot_log/__init__.py b/bot/src/modules/boot_log/__init__.py index 4bc06418..48cc0904 100644 --- a/bot/src/modules/boot_log/__init__.py +++ b/bot/src/modules/boot_log/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.boot_log" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.boot_log' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/config/__init__.py b/bot/src/modules/config/__init__.py index f84c43b8..8c649ce6 100644 --- a/bot/src/modules/config/__init__.py +++ b/bot/src/modules/config/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.config" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.config' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/config/events/__init__.py b/bot/src/modules/config/events/__init__.py index 07c6504c..8ccb4ceb 100644 --- a/bot/src/modules/config/events/__init__.py +++ b/bot/src/modules/config/events/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.config.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.config.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/config/service/__init__.py b/bot/src/modules/config/service/__init__.py index f55a947b..8b7e9751 100644 --- a/bot/src/modules/config/service/__init__.py +++ b/bot/src/modules/config/service/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.config.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.config.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/database/__init__.py b/bot/src/modules/database/__init__.py index 655a9407..80560f42 100644 --- a/bot/src/modules/database/__init__.py +++ b/bot/src/modules/database/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.database" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.database' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/level/__init__.py b/bot/src/modules/level/__init__.py index bbc03958..4e60d50f 100644 --- a/bot/src/modules/level/__init__.py +++ b/bot/src/modules/level/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.level" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.level' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/level/command/__init__.py b/bot/src/modules/level/command/__init__.py index b30d4e00..0bad6151 100644 --- a/bot/src/modules/level/command/__init__.py +++ b/bot/src/modules/level/command/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.level.command" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.level.command' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/level/configuration/__init__.py b/bot/src/modules/level/configuration/__init__.py index bce442a2..8a9e430b 100644 --- a/bot/src/modules/level/configuration/__init__.py +++ b/bot/src/modules/level/configuration/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.level.configuration" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.level.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/level/events/__init__.py b/bot/src/modules/level/events/__init__.py index 1e88cd92..8ffd8ead 100644 --- a/bot/src/modules/level/events/__init__.py +++ b/bot/src/modules/level/events/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.level.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.level.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/level/service/__init__.py b/bot/src/modules/level/service/__init__.py index dda5ebc4..4c5b7516 100644 --- a/bot/src/modules/level/service/__init__.py +++ b/bot/src/modules/level/service/__init__.py @@ -11,16 +11,16 @@ Discord bot for customers of sh-edraft.de """ -__title__ = "modules.level.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.9" +__title__ = 'modules.level.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '1.2.9' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="9") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='1', minor='2', micro='9') diff --git a/bot/src/modules/realms/__init__.py b/bot/src/modules/realms/__init__.py index e69de29b..d243680a 100644 --- a/bot/src/modules/realms/__init__.py +++ b/bot/src/modules/realms/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot sh-edraft.de Discord bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for customers of sh-edraft.de + +:copyright: (c) 2022 - 2023 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = "modules.realms" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "1.2.9" + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/realms/command/__init__.py b/bot/src/modules/realms/command/__init__.py index e69de29b..f801c454 100644 --- a/bot/src/modules/realms/command/__init__.py +++ b/bot/src/modules/realms/command/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot sh-edraft.de Discord bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for customers of sh-edraft.de + +:copyright: (c) 2022 - 2023 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = "modules.realms.command" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "1.2.9" + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/realms/events/__init__.py b/bot/src/modules/realms/events/__init__.py index e69de29b..29a701a8 100644 --- a/bot/src/modules/realms/events/__init__.py +++ b/bot/src/modules/realms/events/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +""" +bot sh-edraft.de Discord bot +~~~~~~~~~~~~~~~~~~~ + +Discord bot for customers of sh-edraft.de + +:copyright: (c) 2022 - 2023 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = "modules.realms.events" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "1.2.9" + +from collections import namedtuple + + +# imports: + +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/realms/reams.json b/bot/src/modules/realms/realms.json similarity index 81% rename from bot/src/modules/realms/reams.json rename to bot/src/modules/realms/realms.json index bfd1a660..8787615f 100644 --- a/bot/src/modules/realms/reams.json +++ b/bot/src/modules/realms/realms.json @@ -1,6 +1,6 @@ { "ProjectSettings": { - "Name": "private-categories", + "Name": "realms", "Version": { "Major": "1", "Minor": "2", @@ -16,10 +16,10 @@ "LicenseName": "", "LicenseDescription": "", "Dependencies": [ - "cpl-core==2022.12.0" + "cpl-core==2023.10.2" ], "DevDependencies": [ - "cpl-cli==2022.12.0" + "cpl-core==2023.10.2" ], "PythonVersion": ">=3.10.6", "PythonPath": {}, @@ -29,8 +29,8 @@ "ProjectType": "library", "SourcePath": "", "OutputPath": "../../dist", - "Main": "private_categories.main", - "EntryPoint": "private_categories", + "Main": "realms.main", + "EntryPoint": "realms", "IncludePackageData": false, "Included": [], "Excluded": [ diff --git a/bot/src/modules/short_role_name/__init__.py b/bot/src/modules/short_role_name/__init__.py index 36301488..67621daf 100644 --- a/bot/src/modules/short_role_name/__init__.py +++ b/bot/src/modules/short_role_name/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.short_role_name" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/short_role_name/events/__init__.py b/bot/src/modules/short_role_name/events/__init__.py index 94ea80f7..10eb0af1 100644 --- a/bot/src/modules/short_role_name/events/__init__.py +++ b/bot/src/modules/short_role_name/events/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.short_role_name.events" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/short_role_name/service/__init__.py b/bot/src/modules/short_role_name/service/__init__.py index 506b79aa..4bb6b999 100644 --- a/bot/src/modules/short_role_name/service/__init__.py +++ b/bot/src/modules/short_role_name/service/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.short_role_name.service" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/special_offers/__init__.py b/bot/src/modules/special_offers/__init__.py index 29702c71..1ab09665 100644 --- a/bot/src/modules/special_offers/__init__.py +++ b/bot/src/modules/special_offers/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.special_offers" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/technician/__init__.py b/bot/src/modules/technician/__init__.py index 86d228aa..79353f40 100644 --- a/bot/src/modules/technician/__init__.py +++ b/bot/src/modules/technician/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.technician" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9") diff --git a/bot/src/modules/technician/command/__init__.py b/bot/src/modules/technician/command/__init__.py index 1390bc8e..3ed7ffb1 100644 --- a/bot/src/modules/technician/command/__init__.py +++ b/bot/src/modules/technician/command/__init__.py @@ -15,7 +15,7 @@ __title__ = "modules.technician.command" __author__ = "Sven Heidemann" __license__ = "MIT" __copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "1.2.8" +__version__ = "1.2.9" from collections import namedtuple @@ -23,4 +23,4 @@ from collections import namedtuple # imports: VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="1", minor="2", micro="8") +version_info = VersionInfo(major="1", minor="2", micro="9")