From e17b24a0c165759907f03f8efad5b1d0dc7d3177 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 15 Jan 2022 13:29:56 +0100 Subject: [PATCH 1/3] Changed version --- src/gismo/__init__.py | 4 ++-- src/gismo/gismo.json | 2 +- src/gismo_core/__init__.py | 4 ++-- src/gismo_core/abc/__init__.py | 4 ++-- src/gismo_core/configuration/__init__.py | 4 ++-- src/gismo_core/service/__init__.py | 4 ++-- src/gismo_data/__init__.py | 4 ++-- src/gismo_data/abc/__init__.py | 4 ++-- src/gismo_data/migration/__init__.py | 4 ++-- src/gismo_data/model/__init__.py | 4 ++-- src/gismo_data/service/__init__.py | 4 ++-- src/modules/base/__init__.py | 4 ++-- src/modules/base/service/__init__.py | 4 ++-- src/modules/boot_log/__init__.py | 4 ++-- src/modules/database/__init__.py | 4 ++-- src/modules/permission/__init__.py | 4 ++-- src/modules/permission/abc/__init__.py | 4 ++-- src/modules/permission/configuration/__init__.py | 4 ++-- src/modules/permission/service/__init__.py | 4 ++-- 19 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/gismo/__init__.py b/src/gismo/__init__.py index a9bad85..148cc6f 100644 --- a/src/gismo/__init__.py +++ b/src/gismo/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo/gismo.json b/src/gismo/gismo.json index 98a00c2..512b284 100644 --- a/src/gismo/gismo.json +++ b/src/gismo/gismo.json @@ -4,7 +4,7 @@ "Version": { "Major": "0", "Minor": "4", - "Micro": "3" + "Micro": "8" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/src/gismo_core/__init__.py b/src/gismo_core/__init__.py index dd03aac..bdc445a 100644 --- a/src/gismo_core/__init__.py +++ b/src/gismo_core/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_core' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_core/abc/__init__.py b/src/gismo_core/abc/__init__.py index f919836..7932588 100644 --- a/src/gismo_core/abc/__init__.py +++ b/src/gismo_core/abc/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_core.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_core/configuration/__init__.py b/src/gismo_core/configuration/__init__.py index 7e7c53e..b65fb2f 100644 --- a/src/gismo_core/configuration/__init__.py +++ b/src/gismo_core/configuration/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_core.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_core/service/__init__.py b/src/gismo_core/service/__init__.py index ce98b94..528ae78 100644 --- a/src/gismo_core/service/__init__.py +++ b/src/gismo_core/service/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_core.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_data/__init__.py b/src/gismo_data/__init__.py index 473f4b1..97bba25 100644 --- a/src/gismo_data/__init__.py +++ b/src/gismo_data/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_data' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_data/abc/__init__.py b/src/gismo_data/abc/__init__.py index 2f3dd20..25c5daf 100644 --- a/src/gismo_data/abc/__init__.py +++ b/src/gismo_data/abc/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_data.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_data/migration/__init__.py b/src/gismo_data/migration/__init__.py index 5c6766b..8f7d212 100644 --- a/src/gismo_data/migration/__init__.py +++ b/src/gismo_data/migration/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_data.migration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_data/model/__init__.py b/src/gismo_data/model/__init__.py index 204bee2..93a2042 100644 --- a/src/gismo_data/model/__init__.py +++ b/src/gismo_data/model/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_data.model' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/gismo_data/service/__init__.py b/src/gismo_data/service/__init__.py index d2d0536..3f92c9e 100644 --- a/src/gismo_data/service/__init__.py +++ b/src/gismo_data/service/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_data.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/base/__init__.py b/src/modules/base/__init__.py index ea3ab60..c7acd0d 100644 --- a/src/modules/base/__init__.py +++ b/src/modules/base/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.base' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/base/service/__init__.py b/src/modules/base/service/__init__.py index 0644214..25714d7 100644 --- a/src/modules/base/service/__init__.py +++ b/src/modules/base/service/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.base.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/boot_log/__init__.py b/src/modules/boot_log/__init__.py index 9a8fe2b..eb9dd67 100644 --- a/src/modules/boot_log/__init__.py +++ b/src/modules/boot_log/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.boot_log' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/database/__init__.py b/src/modules/database/__init__.py index 10dc994..74bc670 100644 --- a/src/modules/database/__init__.py +++ b/src/modules/database/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.database' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/permission/__init__.py b/src/modules/permission/__init__.py index 76fdbcf..1cb897d 100644 --- a/src/modules/permission/__init__.py +++ b/src/modules/permission/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.permission' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/permission/abc/__init__.py b/src/modules/permission/abc/__init__.py index a33666a..b4042ab 100644 --- a/src/modules/permission/abc/__init__.py +++ b/src/modules/permission/abc/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.permission.abc' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/permission/configuration/__init__.py b/src/modules/permission/configuration/__init__.py index e2d977d..cab58f0 100644 --- a/src/modules/permission/configuration/__init__.py +++ b/src/modules/permission/configuration/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.permission.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') diff --git a/src/modules/permission/service/__init__.py b/src/modules/permission/service/__init__.py index 2954e45..c9823c6 100644 --- a/src/modules/permission/service/__init__.py +++ b/src/modules/permission/service/__init__.py @@ -15,11 +15,11 @@ __title__ = 'modules.permission.service' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') From 010bb65ba7ddb166994bea2b28c98f10c2cd12fe Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 15 Jan 2022 14:34:07 +0100 Subject: [PATCH 2/3] Changed version --- src/gismo_core/abc/events/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gismo_core/abc/events/__init__.py b/src/gismo_core/abc/events/__init__.py index 0e1ca48..beaa8f5 100644 --- a/src/gismo_core/abc/events/__init__.py +++ b/src/gismo_core/abc/events/__init__.py @@ -15,11 +15,11 @@ __title__ = 'gismo_core.abc.events' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 - 2022 sh-edraft.de' -__version__ = '0.4.3' +__version__ = '0.4.8' from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='0', minor='4', micro='3') +version_info = VersionInfo(major='0', minor='4', micro='8') From a5267a793dd3702b320b788cfc25592554cf9416 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 15 Jan 2022 14:51:50 +0100 Subject: [PATCH 3/3] Added help command & improved message service --- src/gismo/config | 2 +- src/gismo/startup.py | 2 + src/gismo_core/abc/message_service_abc.py | 4 +- src/gismo_core/service/message_service.py | 14 ++++--- src/modules/base/base.py | 5 ++- src/modules/base/base_settings.py | 6 +++ .../base/service/help_command_service.py | 40 +++++++++++++++++++ 7 files changed, 64 insertions(+), 9 deletions(-) create mode 100644 src/modules/base/service/help_command_service.py diff --git a/src/gismo/config b/src/gismo/config index ed5887b..35473ff 160000 --- a/src/gismo/config +++ b/src/gismo/config @@ -1 +1 @@ -Subproject commit ed5887b6d068d33e686347081630b18d896ece4c +Subproject commit 35473ff33eb69349f5f4f5b44d1d50983a3adc2b diff --git a/src/gismo/startup.py b/src/gismo/startup.py index 07f155e..cefbac1 100644 --- a/src/gismo/startup.py +++ b/src/gismo/startup.py @@ -38,6 +38,7 @@ from gismo_data.service.user_joined_voice_channel_service import UserJoinedVoice from gismo_data.service.user_repository_service import UserRepositoryService from modules.base.base import Base from modules.base.service.afk_command_service import AFKCommandService +from modules.base.service.help_command_service import HelpCommandService from modules.base.service.ping_command_service import PingCommandService from modules.base.service.purge_command_service import PurgeCommandService from modules.boot_log.boot_log import BootLog @@ -99,6 +100,7 @@ class Startup(StartupABC): services.add_singleton(CommandABC, PingCommandService) services.add_singleton(CommandABC, PurgeCommandService) services.add_singleton(CommandABC, AFKCommandService) + services.add_singleton(CommandABC, HelpCommandService) # modules services.add_transient(ModuleABC, Database) diff --git a/src/gismo_core/abc/message_service_abc.py b/src/gismo_core/abc/message_service_abc.py index 1b91937..3226cc7 100644 --- a/src/gismo_core/abc/message_service_abc.py +++ b/src/gismo_core/abc/message_service_abc.py @@ -12,7 +12,7 @@ class MessageServiceABC(ABC): def __init__(self): pass @abstractmethod - async def delete_messages(self, messages: List[discord.Message]): pass + async def delete_messages(self, messages: List[discord.Message], guild_id: int): pass @abstractmethod async def delete_message(self, message: discord.Message): pass @@ -24,4 +24,4 @@ class MessageServiceABC(ABC): async def send_dm_message(self, message: str, receiver: Union[discord.User, discord.Member]): pass @abstractmethod - async def send_ctx_msg(self, ctx: Context, message: str, file: discord.File = None): pass + async def send_ctx_msg(self, ctx: Context, message: str, file: discord.File = None, is_persistent: bool = False): pass diff --git a/src/gismo_core/service/message_service.py b/src/gismo_core/service/message_service.py index 78e113e..32ebd29 100644 --- a/src/gismo_core/service/message_service.py +++ b/src/gismo_core/service/message_service.py @@ -23,11 +23,11 @@ class MessageService(MessageServiceABC): self._clients = clients self._db = db - async def delete_messages(self, messages: List[discord.Message]): + async def delete_messages(self, messages: List[discord.Message], guild_id: int): self._logger.debug(__name__, f'Try to delete {messages.count()} messages') + server_st: ServerSettings = self._config.get_configuration(f'DSERVER_{guild_id}') + await asyncio.sleep(server_st.message_delete_timer) for message in messages: - server_st: ServerSettings = self._config.get_configuration(f'DSERVER_{message.guild.id}') - await asyncio.sleep(server_st.message_delete_timer) await self.delete_message(message, mass_delete=True) self._logger.debug(__name__, 'Deleting messages finished') @@ -70,7 +70,7 @@ class MessageService(MessageServiceABC): self._db.save_changes() self._logger.info(__name__, f'Sent message to user {receiver.id}') - async def send_ctx_msg(self, ctx: Context, message: str, file: discord.File = None): + async def send_ctx_msg(self, ctx: Context, message: str, file: discord.File = None, is_persistent: bool = False): if ctx is None: self._logger.warn(__name__, 'Message context is empty') self._logger.debug(__name__, f'Message: {message}') @@ -89,4 +89,8 @@ class MessageService(MessageServiceABC): self._logger.info(__name__, f'Sent message to channel {ctx.channel.id}') self._clients.append_sent_message_count(self._bot.user.id, ctx.guild.id, 1) self._db.save_changes() - await self.delete_messages(List(discord.Message, [msg, ctx.message])) + if is_persistent: + await self.delete_message(ctx.message) + return + + await self.delete_messages(List(discord.Message, [msg, ctx.message]), ctx.guild.id) diff --git a/src/modules/base/base.py b/src/modules/base/base.py index d4b9bd1..82db15d 100644 --- a/src/modules/base/base.py +++ b/src/modules/base/base.py @@ -22,6 +22,7 @@ from gismo_data.model.user_joined_server import UserJoinedServer from gismo_data.model.user_joined_voice_channel import UserJoinedVoiceChannel from modules.base.base_settings import BaseSettings from modules.base.service.afk_command_service import AFKCommandService +from modules.base.service.help_command_service import HelpCommandService from modules.base.service.ping_command_service import PingCommandService from modules.base.service.purge_command_service import PurgeCommandService from modules.permission.abc.permission_service_abc import PermissionServiceABC @@ -51,7 +52,8 @@ class Base(ModuleABC, OnMemberJoinABC, OnMemberRemoveABC, OnMessageABC, OnVoiceS permission_service: PermissionServiceABC, ping_command: PingCommandService, purge_command: PurgeCommandService, - afk_command: AFKCommandService + afk_command: AFKCommandService, + help_command: HelpCommandService ): self._config = config self._logger = logger @@ -80,6 +82,7 @@ class Base(ModuleABC, OnMemberJoinABC, OnMemberRemoveABC, OnMessageABC, OnVoiceS self._bot.add_cog(ping_command) self._bot.add_cog(purge_command) self._bot.add_cog(afk_command) + self._bot.add_cog(help_command) self._logger.info(__name__, f'Module {type(self)} loaded') diff --git a/src/modules/base/base_settings.py b/src/modules/base/base_settings.py index 300af49..abc881f 100644 --- a/src/modules/base/base_settings.py +++ b/src/modules/base/base_settings.py @@ -21,6 +21,7 @@ class BaseSettings(ConfigurationModelABC): self._afk_command_channel_id: int = 0 self._afk_command_channel_missing_message: str = '' self._afk_command_move_message: str = '' + self._help_command_reference_url: str = '' @property def welcome_message(self) -> str: @@ -70,6 +71,10 @@ class BaseSettings(ConfigurationModelABC): def afk_command_move_message(self) -> str: return self._afk_command_move_message + @property + def help_command_reference_url(self) -> str: + return self._help_command_reference_url + def from_dict(self, settings: dict): try: self._welcome_message = settings['WelcomeMessage'] @@ -85,6 +90,7 @@ class BaseSettings(ConfigurationModelABC): self._afk_command_channel_id = settings['AFKCommandChannelId'] self._afk_command_channel_missing_message = settings['AFKCommandChannelMissingMessage'] self._afk_command_move_message = settings['AFKCommandMoveMessage'] + self._help_command_reference_url = settings['HelpCommandReferenceUrl'] except Exception as e: Console.error(f'[ ERROR ] [ {__name__} ]: Reading error in {self.__name__} settings') Console.error(f'[ EXCEPTION ] [ {__name__} ]: {e} -> {traceback.format_exc()}') diff --git a/src/modules/base/service/help_command_service.py b/src/modules/base/service/help_command_service.py new file mode 100644 index 0000000..6a97d6c --- /dev/null +++ b/src/modules/base/service/help_command_service.py @@ -0,0 +1,40 @@ +from cpl_core.configuration import ConfigurationABC +from cpl_core.logging import LoggerABC +from discord.ext import commands +from discord.ext.commands import Context + +from gismo_core.abc.bot_service_abc import BotServiceABC +from gismo_core.abc.client_utils_service_abc import ClientUtilsServiceABC +from gismo_core.abc.command_abc import CommandABC +from gismo_core.abc.message_service_abc import MessageServiceABC +from modules.base.base_settings import BaseSettings + + +class HelpCommandService(CommandABC): + + def __init__( + self, + config: ConfigurationABC, + logger: LoggerABC, + message_service: MessageServiceABC, + bot: BotServiceABC, + client_utils: ClientUtilsServiceABC + ): + CommandABC.__init__(self) + + self._config = config + self._logger = logger + self._message_service = message_service + self._bot = bot + self._client_utils = client_utils + + self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}') + + @commands.command() + async def help(self, ctx: Context, persistent_flag: str = None): + self._logger.debug(__name__, f'Received command ping {ctx}:{persistent_flag}') + self._client_utils.received_command(ctx.guild.id) + settings: BaseSettings = self._config.get_configuration(f'Base_{ctx.guild.id}') + is_persistent = persistent_flag == '--stay' + await self._message_service.send_ctx_msg(ctx, settings.help_command_reference_url, is_persistent=is_persistent) + self._logger.trace(__name__, f'Finished ping command')