diff --git a/.gitignore b/.gitignore index 287718c..6a660d8 100644 --- a/.gitignore +++ b/.gitignore @@ -139,5 +139,5 @@ dmypy.json cython_debug/ # custom vs code -.vscode/PythonImportHelper-v2-Completion.json +PythonImportHelper-v2-Completion.json diff --git a/.vscode/PythonImportHelper-v2-Completion.json b/.vscode/PythonImportHelper-v2-Completion.json deleted file mode 100644 index 30d844b..0000000 --- a/.vscode/PythonImportHelper-v2-Completion.json +++ /dev/null @@ -1,1525 +0,0 @@ -[ - { - "label": "ApplicationABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationBuilder", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "StartupABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationBuilder", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "StartupABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationBuilder", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "StartupABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationBuilder", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "StartupABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ApplicationBuilder", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "StartupABC", - "importPath": "cpl_core.application", - "description": "cpl_core.application", - "isExtraImport": true, - "detail": "cpl_core.application", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "Configuration", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationModelABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationModelABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration", - "description": "cpl_core.configuration", - "isExtraImport": true, - "detail": "cpl_core.configuration", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "Console", - "importPath": "cpl_core.console", - "description": "cpl_core.console", - "isExtraImport": true, - "detail": "cpl_core.console", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceCollectionABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceCollection", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceCollectionABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceCollectionABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceCollectionABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceProviderABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "ServiceCollectionABC", - "importPath": "cpl_core.dependency_injection", - "description": "cpl_core.dependency_injection", - "isExtraImport": true, - "detail": "cpl_core.dependency_injection", - "documentation": {} - }, - { - "label": "asyncio", - "kind": 6, - "isExtraImport": true, - "importPath": "asyncio", - "description": "asyncio", - "detail": "asyncio", - "documentation": {} - }, - { - "label": "Application", - "importPath": "gismo.application", - "description": "gismo.application", - "isExtraImport": true, - "detail": "gismo.application", - "documentation": {} - }, - { - "label": "Application", - "importPath": "gismo.application", - "description": "gismo.application", - "isExtraImport": true, - "detail": "gismo.application", - "documentation": {} - }, - { - "label": "Startup", - "importPath": "gismo.startup", - "description": "gismo.startup", - "isExtraImport": true, - "detail": "gismo.startup", - "documentation": {} - }, - { - "label": "Startup", - "importPath": "gismo.startup", - "description": "gismo.startup", - "isExtraImport": true, - "detail": "gismo.startup", - "documentation": {} - }, - { - "label": "ApplicationEnvironment", - "importPath": "cpl_core.environment", - "description": "cpl_core.environment", - "isExtraImport": true, - "detail": "cpl_core.environment", - "documentation": {} - }, - { - "label": "ApplicationEnvironment", - "importPath": "cpl_core.environment", - "description": "cpl_core.environment", - "isExtraImport": true, - "detail": "cpl_core.environment", - "documentation": {} - }, - { - "label": "ApplicationEnvironment", - "importPath": "cpl_core.environment", - "description": "cpl_core.environment", - "isExtraImport": true, - "detail": "cpl_core.environment", - "documentation": {} - }, - { - "label": "ApplicationEnvironmentABC", - "importPath": "cpl_core.environment", - "description": "cpl_core.environment", - "isExtraImport": true, - "detail": "cpl_core.environment", - "documentation": {} - }, - { - "label": "ApplicationEnvironment", - "importPath": "cpl_core.environment", - "description": "cpl_core.environment", - "isExtraImport": true, - "detail": "cpl_core.environment", - "documentation": {} - }, - { - "label": "ApplicationEnvironment", - "importPath": "cpl_core.environment", - "description": "cpl_core.environment", - "isExtraImport": true, - "detail": "cpl_core.environment", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggingLevelEnum", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggingSettings", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "LoggerABC", - "importPath": "cpl_core.logging", - "description": "cpl_core.logging", - "isExtraImport": true, - "detail": "cpl_core.logging", - "documentation": {} - }, - { - "label": "BotServiceABC", - "importPath": "gismo_core.abc.bot_service_abc", - "description": "gismo_core.abc.bot_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.bot_service_abc", - "documentation": {} - }, - { - "label": "BotServiceABC", - "importPath": "gismo_core.abc.bot_service_abc", - "description": "gismo_core.abc.bot_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.bot_service_abc", - "documentation": {} - }, - { - "label": "BotServiceABC", - "importPath": "gismo_core.abc.bot_service_abc", - "description": "gismo_core.abc.bot_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.bot_service_abc", - "documentation": {} - }, - { - "label": "BotServiceABC", - "importPath": "gismo_core.abc.bot_service_abc", - "description": "gismo_core.abc.bot_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.bot_service_abc", - "documentation": {} - }, - { - "label": "BotServiceABC", - "importPath": "gismo_core.abc.bot_service_abc", - "description": "gismo_core.abc.bot_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.bot_service_abc", - "documentation": {} - }, - { - "label": "BotService", - "importPath": "gismo_core.service.bot_service", - "description": "gismo_core.service.bot_service", - "isExtraImport": true, - "detail": "gismo_core.service.bot_service", - "documentation": {} - }, - { - "label": "BotService", - "importPath": "gismo_core.service.bot_service", - "description": "gismo_core.service.bot_service", - "isExtraImport": true, - "detail": "gismo_core.service.bot_service", - "documentation": {} - }, - { - "label": "Optional", - "importPath": "typing", - "description": "typing", - "isExtraImport": true, - "detail": "typing", - "documentation": {} - }, - { - "label": "Optional", - "importPath": "typing", - "description": "typing", - "isExtraImport": true, - "detail": "typing", - "documentation": {} - }, - { - "label": "Union", - "importPath": "typing", - "description": "typing", - "isExtraImport": true, - "detail": "typing", - "documentation": {} - }, - { - "label": "Union", - "importPath": "typing", - "description": "typing", - "isExtraImport": true, - "detail": "typing", - "documentation": {} - }, - { - "label": "BootLogExtension", - "importPath": "modules.boot_log.boot_log_extension", - "description": "modules.boot_log.boot_log_extension", - "isExtraImport": true, - "detail": "modules.boot_log.boot_log_extension", - "documentation": {} - }, - { - "label": "datetime", - "importPath": "datetime", - "description": "datetime", - "isExtraImport": true, - "detail": "datetime", - "documentation": {} - }, - { - "label": "datetime", - "importPath": "datetime", - "description": "datetime", - "isExtraImport": true, - "detail": "datetime", - "documentation": {} - }, - { - "label": "datetime", - "importPath": "datetime", - "description": "datetime", - "isExtraImport": true, - "detail": "datetime", - "documentation": {} - }, - { - "label": "MessageServiceABC", - "importPath": "gismo_core.abc.message_service_abc", - "description": "gismo_core.abc.message_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.message_service_abc", - "documentation": {} - }, - { - "label": "MessageServiceABC", - "importPath": "gismo_core.abc.message_service_abc", - "description": "gismo_core.abc.message_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.message_service_abc", - "documentation": {} - }, - { - "label": "MessageServiceABC", - "importPath": "gismo_core.abc.message_service_abc", - "description": "gismo_core.abc.message_service_abc", - "isExtraImport": true, - "detail": "gismo_core.abc.message_service_abc", - "documentation": {} - }, - { - "label": "MessageService", - "importPath": "gismo_core.service.message_service", - "description": "gismo_core.service.message_service", - "isExtraImport": true, - "detail": "gismo_core.service.message_service", - "documentation": {} - }, - { - "label": "BootLog", - "importPath": "modules.boot_log.boot_log", - "description": "modules.boot_log.boot_log", - "isExtraImport": true, - "detail": "modules.boot_log.boot_log", - "documentation": {} - }, - { - "label": "ModuleABC", - "importPath": "modules_core.abc.module_abc", - "description": "modules_core.abc.module_abc", - "isExtraImport": true, - "detail": "modules_core.abc.module_abc", - "documentation": {} - }, - { - "label": "ModuleABC", - "importPath": "modules_core.abc.module_abc", - "description": "modules_core.abc.module_abc", - "isExtraImport": true, - "detail": "modules_core.abc.module_abc", - "documentation": {} - }, - { - "label": "ModuleABC", - "importPath": "modules_core.abc.module_abc", - "description": "modules_core.abc.module_abc", - "isExtraImport": true, - "detail": "modules_core.abc.module_abc", - "documentation": {} - }, - { - "label": "ModuleServiceABC", - "importPath": "modules_core.abc.module_service_abc", - "description": "modules_core.abc.module_service_abc", - "isExtraImport": true, - "detail": "modules_core.abc.module_service_abc", - "documentation": {} - }, - { - "label": "ModuleServiceABC", - "importPath": "modules_core.abc.module_service_abc", - "description": "modules_core.abc.module_service_abc", - "isExtraImport": true, - "detail": "modules_core.abc.module_service_abc", - "documentation": {} - }, - { - "label": "ModuleServiceABC", - "importPath": "modules_core.abc.module_service_abc", - "description": "modules_core.abc.module_service_abc", - "isExtraImport": true, - "detail": "modules_core.abc.module_service_abc", - "documentation": {} - }, - { - "label": "ModuleService", - "importPath": "modules_core.service.module_service", - "description": "modules_core.service.module_service", - "isExtraImport": true, - "detail": "modules_core.service.module_service", - "documentation": {} - }, - { - "label": "Application", - "importPath": "gismo_cli.application", - "description": "gismo_cli.application", - "isExtraImport": true, - "detail": "gismo_cli.application", - "documentation": {} - }, - { - "label": "Startup", - "importPath": "gismo_cli.startup", - "description": "gismo_cli.startup", - "isExtraImport": true, - "detail": "gismo_cli.startup", - "documentation": {} - }, - { - "label": "ABC", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "abstractmethod", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "ABC", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "abstractmethod", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "ABC", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "abstractmethod", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "ABC", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "abstractmethod", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "ABC", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "abstractmethod", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "ABC", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "abstractmethod", - "importPath": "abc", - "description": "abc", - "isExtraImport": true, - "detail": "abc", - "documentation": {} - }, - { - "label": "discord", - "kind": 6, - "isExtraImport": true, - "importPath": "discord", - "description": "discord", - "detail": "discord", - "documentation": {} - }, - { - "label": "guild", - "importPath": "discord", - "description": "discord", - "isExtraImport": true, - "detail": "discord", - "documentation": {} - }, - { - "label": "commands", - "importPath": "discord.ext", - "description": "discord.ext", - "isExtraImport": true, - "detail": "discord.ext", - "documentation": {} - }, - { - "label": "commands", - "importPath": "discord.ext", - "description": "discord.ext", - "isExtraImport": true, - "detail": "discord.ext", - "documentation": {} - }, - { - "label": "commands", - "importPath": "discord.ext", - "description": "discord.ext", - "isExtraImport": true, - "detail": "discord.ext", - "documentation": {} - }, - { - "label": "List", - "importPath": "cpl_query.extension", - "description": "cpl_query.extension", - "isExtraImport": true, - "detail": "cpl_query.extension", - "documentation": {} - }, - { - "label": "List", - "importPath": "cpl_query.extension", - "description": "cpl_query.extension", - "isExtraImport": true, - "detail": "cpl_query.extension", - "documentation": {} - }, - { - "label": "List", - "importPath": "cpl_query.extension", - "description": "cpl_query.extension", - "isExtraImport": true, - "detail": "cpl_query.extension", - "documentation": {} - }, - { - "label": "List", - "importPath": "cpl_query.extension", - "description": "cpl_query.extension", - "isExtraImport": true, - "detail": "cpl_query.extension", - "documentation": {} - }, - { - "label": "Context", - "importPath": "discord.ext.commands", - "description": "discord.ext.commands", - "isExtraImport": true, - "detail": "discord.ext.commands", - "documentation": {} - }, - { - "label": "Context", - "importPath": "discord.ext.commands", - "description": "discord.ext.commands", - "isExtraImport": true, - "detail": "discord.ext.commands", - "documentation": {} - }, - { - "label": "traceback", - "kind": 6, - "isExtraImport": true, - "importPath": "traceback", - "description": "traceback", - "detail": "traceback", - "documentation": {} - }, - { - "label": "ServerSettings", - "importPath": "gismo_core.configuration.server_settings", - "description": "gismo_core.configuration.server_settings", - "isExtraImport": true, - "detail": "gismo_core.configuration.server_settings", - "documentation": {} - }, - { - "label": "ServerSettings", - "importPath": "gismo_core.configuration.server_settings", - "description": "gismo_core.configuration.server_settings", - "isExtraImport": true, - "detail": "gismo_core.configuration.server_settings", - "documentation": {} - }, - { - "label": "ServerSettings", - "importPath": "gismo_core.configuration.server_settings", - "description": "gismo_core.configuration.server_settings", - "isExtraImport": true, - "detail": "gismo_core.configuration.server_settings", - "documentation": {} - }, - { - "label": "ServerSettings", - "importPath": "gismo_core.configuration.server_settings", - "description": "gismo_core.configuration.server_settings", - "isExtraImport": true, - "detail": "gismo_core.configuration.server_settings", - "documentation": {} - }, - { - "label": "ConfigurationModelABC", - "importPath": "cpl_core.configuration.configuration_model_abc", - "description": "cpl_core.configuration.configuration_model_abc", - "isExtraImport": true, - "detail": "cpl_core.configuration.configuration_model_abc", - "documentation": {} - }, - { - "label": "BotSettings", - "importPath": "gismo_core.configuration.bot_settings", - "description": "gismo_core.configuration.bot_settings", - "isExtraImport": true, - "detail": "gismo_core.configuration.bot_settings", - "documentation": {} - }, - { - "label": "DiscordSettings", - "importPath": "gismo_core.configuration.discord_settings", - "description": "gismo_core.configuration.discord_settings", - "isExtraImport": true, - "detail": "gismo_core.configuration.discord_settings", - "documentation": {} - }, - { - "label": "ConfigurationABC", - "importPath": "cpl_core.configuration.configuration_abc", - "description": "cpl_core.configuration.configuration_abc", - "isExtraImport": true, - "detail": "cpl_core.configuration.configuration_abc", - "documentation": {} - }, - { - "label": "asyncio", - "importPath": "async_timeout", - "description": "async_timeout", - "isExtraImport": true, - "detail": "async_timeout", - "documentation": {} - }, - { - "label": "asyncio", - "importPath": "async_timeout", - "description": "async_timeout", - "isExtraImport": true, - "detail": "async_timeout", - "documentation": {} - }, - { - "label": "OnReadyABC", - "importPath": "modules_core.abc.on_ready_abc", - "description": "modules_core.abc.on_ready_abc", - "isExtraImport": true, - "detail": "modules_core.abc.on_ready_abc", - "documentation": {} - }, - { - "label": "OnReadyABC", - "importPath": "modules_core.abc.on_ready_abc", - "description": "modules_core.abc.on_ready_abc", - "isExtraImport": true, - "detail": "modules_core.abc.on_ready_abc", - "documentation": {} - }, - { - "label": "ApplicationExtensionABC", - "importPath": "cpl_core.application.application_extension_abc", - "description": "cpl_core.application.application_extension_abc", - "isExtraImport": true, - "detail": "cpl_core.application.application_extension_abc", - "documentation": {} - }, - { - "label": "OnMessageABC", - "importPath": "modules_core.abc.on_message_abc", - "description": "modules_core.abc.on_message_abc", - "isExtraImport": true, - "detail": "modules_core.abc.on_message_abc", - "documentation": {} - }, - { - "label": "Enum", - "importPath": "enum", - "description": "enum", - "isExtraImport": true, - "detail": "enum", - "documentation": {} - }, - { - "label": "json", - "kind": 6, - "isExtraImport": true, - "importPath": "json", - "description": "json", - "detail": "json", - "documentation": {} - }, - { - "label": "Application", - "importPath": "level_generator.application", - "description": "level_generator.application", - "isExtraImport": true, - "detail": "level_generator.application", - "documentation": {} - }, - { - "label": "Startup", - "importPath": "level_generator.startup", - "description": "level_generator.startup", - "isExtraImport": true, - "detail": "level_generator.startup", - "documentation": {} - }, - { - "label": "Application", - "importPath": "ontime_calculator.application", - "description": "ontime_calculator.application", - "isExtraImport": true, - "detail": "ontime_calculator.application", - "documentation": {} - }, - { - "label": "Startup", - "importPath": "ontime_calculator.startup", - "description": "ontime_calculator.startup", - "isExtraImport": true, - "detail": "ontime_calculator.startup", - "documentation": {} - }, - { - "label": "Application", - "kind": 6, - "importPath": "dist.gismo.build.gismo.application", - "description": "dist.gismo.build.gismo.application", - "peekOfCode": "class Application(ApplicationABC):\n def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):\n ApplicationABC.__init__(self, config, services)\n async def configure(self):\n pass\n async def main(self):\n Console.write_line('Hello World')", - "detail": "dist.gismo.build.gismo.application", - "documentation": {} - }, - { - "label": "Startup", - "kind": 6, - "importPath": "dist.gismo.build.gismo.startup", - "description": "dist.gismo.build.gismo.startup", - "peekOfCode": "class Startup(StartupABC):\n def __init__(self):\n StartupABC.__init__(self)\n async def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC:\n return configuration\n async def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC:\n return services.build_service_provider()", - "detail": "dist.gismo.build.gismo.startup", - "documentation": {} - }, - { - "label": "configure_configuration", - "kind": 2, - "importPath": "dist.gismo.build.modules.boot_log.main", - "description": "dist.gismo.build.modules.boot_log.main", - "peekOfCode": "def configure_configuration() -> ConfigurationABC:\n config = Configuration()\n return config\ndef configure_services(config: ConfigurationABC) -> ServiceProviderABC:\n services = ServiceCollection(config)\n return services.build_service_provider()\ndef main():\n config = configure_configuration()\n provider = configure_services(config)\n Console.write_line('Hello World')", - "detail": "dist.gismo.build.modules.boot_log.main", - "documentation": {} - }, - { - "label": "configure_services", - "kind": 2, - "importPath": "dist.gismo.build.modules.boot_log.main", - "description": "dist.gismo.build.modules.boot_log.main", - "peekOfCode": "def configure_services(config: ConfigurationABC) -> ServiceProviderABC:\n services = ServiceCollection(config)\n return services.build_service_provider()\ndef main():\n config = configure_configuration()\n provider = configure_services(config)\n Console.write_line('Hello World')\nif __name__ == '__main__':\n main()", - "detail": "dist.gismo.build.modules.boot_log.main", - "documentation": {} - }, - { - "label": "main", - "kind": 2, - "importPath": "dist.gismo.build.modules.boot_log.main", - "description": "dist.gismo.build.modules.boot_log.main", - "peekOfCode": "def main():\n config = configure_configuration()\n provider = configure_services(config)\n Console.write_line('Hello World')\nif __name__ == '__main__':\n main()", - "detail": "dist.gismo.build.modules.boot_log.main", - "documentation": {} - }, - { - "label": "Application", - "kind": 6, - "importPath": "src.gismo.application", - "description": "src.gismo.application", - "peekOfCode": "class Application(ApplicationABC):\n def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):\n ApplicationABC.__init__(self, config, services)\n self._bot: BotService = services.get_service(BotServiceABC)\n self._logger: LoggerABC = services.get_service(LoggerABC)\n async def configure(self):\n pass\n async def main(self):\n try:\n self._logger.trace(__name__, f'Try to start {BotService}')", - "detail": "src.gismo.application", - "documentation": {} - }, - { - "label": "Main", - "kind": 6, - "importPath": "src.gismo.main", - "description": "src.gismo.main", - "peekOfCode": "class Main:\n def __init__(self):\n self._app: Optional[ApplicationABC] = None\n async def main(self):\n app_builder = ApplicationBuilder(Application)\n app_builder.use_extension(BootLogExtension)\n app_builder.use_startup(Startup)\n self._app: ApplicationABC = await app_builder.build_async()\n await self._app.run_async()\n async def stop(self):", - "detail": "src.gismo.main", - "documentation": {} - }, - { - "label": "Startup", - "kind": 6, - "importPath": "src.gismo.startup", - "description": "src.gismo.startup", - "peekOfCode": "class Startup(StartupABC):\n def __init__(self):\n StartupABC.__init__(self)\n self._start_time = datetime.now()\n self._config: Optional[ConfigurationABC] = None\n async def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC:\n configuration.add_environment_variables('GISMO_')\n configuration.add_json_file(f'appsettings.json', optional=False)\n configuration.add_json_file(f'appsettings.{environment.environment_name}.json', optional=True)\n configuration.add_json_file(f'appsettings.{environment.host_name}.json', optional=True)", - "detail": "src.gismo.startup", - "documentation": {} - }, - { - "label": "Application", - "kind": 6, - "importPath": "src.gismo_cli.application", - "description": "src.gismo_cli.application", - "peekOfCode": "class Application(ApplicationABC):\n def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):\n ApplicationABC.__init__(self, config, services)\n async def configure(self):\n pass\n async def main(self):\n Console.write_line('Hello World')", - "detail": "src.gismo_cli.application", - "documentation": {} - }, - { - "label": "Startup", - "kind": 6, - "importPath": "src.gismo_cli.startup", - "description": "src.gismo_cli.startup", - "peekOfCode": "class Startup(StartupABC):\n def __init__(self):\n StartupABC.__init__(self)\n async def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC:\n return configuration\n async def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC:\n return services.build_service_provider()", - "detail": "src.gismo_cli.startup", - "documentation": {} - }, - { - "label": "BotServiceABC", - "kind": 6, - "importPath": "src.gismo_core.abc.bot_service_abc", - "description": "src.gismo_core.abc.bot_service_abc", - "peekOfCode": "class BotServiceABC(ABC, commands.Bot):\n @abstractmethod\n def __init__(self): pass\n @abstractmethod\n async def start_async(self): pass\n @abstractmethod\n async def stop_async(self): pass\n @abstractmethod\n async def on_message(self, message: discord.Message): pass", - "detail": "src.gismo_core.abc.bot_service_abc", - "documentation": {} - }, - { - "label": "MessageServiceABC", - "kind": 6, - "importPath": "src.gismo_core.abc.message_service_abc", - "description": "src.gismo_core.abc.message_service_abc", - "peekOfCode": "class MessageServiceABC(ABC):\n @abstractmethod\n def __init__(self): pass\n @abstractmethod\n async def delete_messages(self, messages: List[discord.Message]): pass\n @abstractmethod\n async def delete_message(self, message: discord.Message): pass\n @abstractmethod\n async def send_channel_message(self, channel: discord.TextChannel, message: str): pass\n @abstractmethod", - "detail": "src.gismo_core.abc.message_service_abc", - "documentation": {} - }, - { - "label": "BotSettings", - "kind": 6, - "importPath": "src.gismo_core.configuration.bot_settings", - "description": "src.gismo_core.configuration.bot_settings", - "peekOfCode": "class BotSettings(ConfigurationModelABC):\n def __init__(self):\n ConfigurationModelABC.__init__(self)\n self._prefix: str = ''\n self._servers: List[ServerSettings] = List()\n @property\n def prefix(self) -> str:\n return self._prefix\n @property\n def servers(self) -> List[ServerSettings]:", - "detail": "src.gismo_core.configuration.bot_settings", - "documentation": {} - }, - { - "label": "DiscordSettings", - "kind": 6, - "importPath": "src.gismo_core.configuration.discord_settings", - "description": "src.gismo_core.configuration.discord_settings", - "peekOfCode": "class DiscordSettings(ConfigurationModelABC):\n def __init__(self):\n ConfigurationModelABC.__init__(self)\n self._token: str = ''\n @property\n def token(self) -> str:\n return self._token\n def from_dict(self, settings: dict):\n try:\n self._token = settings['Token']", - "detail": "src.gismo_core.configuration.discord_settings", - "documentation": {} - }, - { - "label": "ServerSettings", - "kind": 6, - "importPath": "src.gismo_core.configuration.server_settings", - "description": "src.gismo_core.configuration.server_settings", - "peekOfCode": "class ServerSettings(ConfigurationModelABC):\n def __init__(self):\n ConfigurationModelABC.__init__(self)\n self._id: int = 0\n self._message_delete_timer: int = 0\n self._login_message_channel_id: int = 0\n self._login_message: str = ''\n @property\n def id(self) -> str:\n return self._id", - "detail": "src.gismo_core.configuration.server_settings", - "documentation": {} - }, - { - "label": "BotService", - "kind": 6, - "importPath": "src.gismo_core.service.bot_service", - "description": "src.gismo_core.service.bot_service", - "peekOfCode": "class BotService(BotServiceABC, commands.Bot):\n def __init__(self, config: ConfigurationABC, logger: LoggerABC, modules: ModuleServiceABC, discord_settings: DiscordSettings, bot_settings: BotSettings):\n # services\n self._config = config\n self._logger = logger\n self._modules = modules\n # settings\n self._discord_settings = discord_settings\n self._bot_settings: BotSettings = bot_settings\n # setup super", - "detail": "src.gismo_core.service.bot_service", - "documentation": {} - }, - { - "label": "MessageService", - "kind": 6, - "importPath": "src.gismo_core.service.message_service", - "description": "src.gismo_core.service.message_service", - "peekOfCode": "class MessageService(MessageServiceABC):\n def __init__(self, config: ConfigurationABC, logger: LoggerABC, bot: BotServiceABC):\n self._config = config\n self._logger = logger\n self._bot = bot\n async def delete_messages(self, messages: List[discord.Message]): \n self._logger.debug(__name__, f'Try to delete {messages.count()} messages')\n for message in messages:\n await self.delete_message(message)\n self._logger.debug(__name__, 'Deleting messages finished')", - "detail": "src.gismo_core.service.message_service", - "documentation": {} - }, - { - "label": "BootLog", - "kind": 6, - "importPath": "src.modules.boot_log.boot_log", - "description": "src.modules.boot_log.boot_log", - "peekOfCode": "class BootLog(ModuleABC, OnReadyABC):\n def __init__(\n self,\n config: ConfigurationABC,\n logging_st: LoggingSettings,\n logger: LoggerABC,\n bot: BotServiceABC,\n message_service: MessageServiceABC\n ):\n self._config = config", - "detail": "src.modules.boot_log.boot_log", - "documentation": {} - }, - { - "label": "BootLogExtension", - "kind": 6, - "importPath": "src.modules.boot_log.boot_log_extension", - "description": "src.modules.boot_log.boot_log_extension", - "peekOfCode": "class BootLogExtension(ApplicationExtensionABC):\n def __init__(self):\n pass\n async def run(self, config: ConfigurationABC, services: ServiceProviderABC):\n logger: LoggerABC = services.get_service(LoggerABC)\n logger.debug(__name__, 'BootLog extension started')\n config.add_configuration('Bot_StartTime', datetime.now())", - "detail": "src.modules.boot_log.boot_log_extension", - "documentation": {} - }, - { - "label": "ModuleABC", - "kind": 6, - "importPath": "src.modules_core.abc.module_abc", - "description": "src.modules_core.abc.module_abc", - "peekOfCode": "class ModuleABC(ABC):\n @abstractmethod\n def __init__(self): pass", - "detail": "src.modules_core.abc.module_abc", - "documentation": {} - }, - { - "label": "ModuleServiceABC", - "kind": 6, - "importPath": "src.modules_core.abc.module_service_abc", - "description": "src.modules_core.abc.module_service_abc", - "peekOfCode": "class ModuleServiceABC(ABC):\n @abstractmethod\n def __init__(self): pass\n @abstractmethod\n async def on_ready(self): pass\n @abstractmethod\n async def on_message(self, message: discord.Message): pass", - "detail": "src.modules_core.abc.module_service_abc", - "documentation": {} - }, - { - "label": "OnMessageABC", - "kind": 6, - "importPath": "src.modules_core.abc.on_message_abc", - "description": "src.modules_core.abc.on_message_abc", - "peekOfCode": "class OnMessageABC(ABC):\n @abstractmethod\n def __init__(self): pass\n @abstractmethod\n async def on_message(self, message: discord.Message): pass", - "detail": "src.modules_core.abc.on_message_abc", - "documentation": {} - }, - { - "label": "OnReadyABC", - "kind": 6, - "importPath": "src.modules_core.abc.on_ready_abc", - "description": "src.modules_core.abc.on_ready_abc", - "peekOfCode": "class OnReadyABC(ABC):\n @abstractmethod\n def __init__(self): pass\n @abstractmethod\n async def on_ready(self): pass", - "detail": "src.modules_core.abc.on_ready_abc", - "documentation": {} - }, - { - "label": "ModuleService", - "kind": 6, - "importPath": "src.modules_core.service.module_service", - "description": "src.modules_core.service.module_service", - "peekOfCode": "class ModuleService(ModuleServiceABC):\n def __init__(self, logger: LoggerABC, services: ServiceProviderABC, env: ApplicationEnvironmentABC):\n self._logger = logger\n self._services = services\n self._env = env\n self._modules: List[ModuleABC] = List()\n self._modules.extend(ModuleABC.__subclasses__())\n async def on_ready(self):\n self._logger.debug(__name__, 'Start on_ready modules')\n modules = self._modules.where(lambda m: issubclass(m, OnReadyABC))", - "detail": "src.modules_core.service.module_service", - "documentation": {} - }, - { - "label": "EventsEnum", - "kind": 6, - "importPath": "src.modules_core.events_enum", - "description": "src.modules_core.events_enum", - "peekOfCode": "class EventsEnum(Enum):\n on_ready = 'on_ready'", - "detail": "src.modules_core.events_enum", - "documentation": {} - }, - { - "label": "Application", - "kind": 6, - "importPath": "tools.level_generator.application", - "description": "tools.level_generator.application", - "peekOfCode": "class Application(ApplicationABC):\n def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):\n ApplicationABC.__init__(self, config, services)\n def configure(self):\n pass\n def main(self):\n f = open(\"./Levels.txt\", \"r\", encoding='utf-8')\n i = 0\n lines = f.readlines()\n json_list = []", - "detail": "tools.level_generator.application", - "documentation": {} - }, - { - "label": "main", - "kind": 2, - "importPath": "tools.level_generator.main", - "description": "tools.level_generator.main", - "peekOfCode": "def main():\n app_builder = ApplicationBuilder(Application)\n app_builder.use_startup(Startup)\n app_builder.build().run()\nif __name__ == '__main__':\n main()", - "detail": "tools.level_generator.main", - "documentation": {} - }, - { - "label": "Startup", - "kind": 6, - "importPath": "tools.level_generator.startup", - "description": "tools.level_generator.startup", - "peekOfCode": "class Startup(StartupABC):\n def __init__(self):\n StartupABC.__init__(self)\n def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC:\n return configuration\n def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC:\n return services.build_service_provider()", - "detail": "tools.level_generator.startup", - "documentation": {} - }, - { - "label": "Application", - "kind": 6, - "importPath": "tools.ontime_calculator.application", - "description": "tools.ontime_calculator.application", - "peekOfCode": "class Application(ApplicationABC):\n def __init__(self, config: ConfigurationABC, services: ServiceProviderABC):\n ApplicationABC.__init__(self, config, services)\n def configure(self):\n pass\n def main(self):\n ontime = 0\n mc = 0\n for i in range(0, 31):\n Console.write_line(f'i: {i} {ontime} {mc}')", - "detail": "tools.ontime_calculator.application", - "documentation": {} - }, - { - "label": "main", - "kind": 2, - "importPath": "tools.ontime_calculator.main", - "description": "tools.ontime_calculator.main", - "peekOfCode": "def main():\n app_builder = ApplicationBuilder(Application)\n app_builder.use_startup(Startup)\n app_builder.build().run()\nif __name__ == '__main__':\n main()", - "detail": "tools.ontime_calculator.main", - "documentation": {} - }, - { - "label": "Startup", - "kind": 6, - "importPath": "tools.ontime_calculator.startup", - "description": "tools.ontime_calculator.startup", - "peekOfCode": "class Startup(StartupABC):\n def __init__(self):\n StartupABC.__init__(self)\n def configure_configuration(self, configuration: ConfigurationABC, environment: ApplicationEnvironment) -> ConfigurationABC:\n return configuration\n def configure_services(self, services: ServiceCollectionABC, environment: ApplicationEnvironment) -> ServiceProviderABC:\n return services.build_service_provider()", - "detail": "tools.ontime_calculator.startup", - "documentation": {} - } -] \ No newline at end of file diff --git a/src/modules_core/abc/module_service_abc.py b/src/modules_core/abc/module_service_abc.py index 51bc8a0..50432e2 100644 --- a/src/modules_core/abc/module_service_abc.py +++ b/src/modules_core/abc/module_service_abc.py @@ -1,4 +1,6 @@ from abc import ABC, abstractmethod +from datetime import datetime +from typing import Optional, Sequence, Union import discord @@ -7,9 +9,144 @@ class ModuleServiceABC(ABC): @abstractmethod def __init__(self): pass + + @abstractmethod + async def on_connect(self): pass + + @abstractmethod + async def on_disconnect(self): pass @abstractmethod async def on_ready(self): pass + @abstractmethod + async def on_resume(self): pass + + @abstractmethod + async def on_error(self, event: str, *args, **kwargs): pass + + @abstractmethod + async def on_typing(self, channel: discord.abc.Messageable, user: Union[discord.User, discord.Member], when: datetime): pass + @abstractmethod async def on_message(self, message: discord.Message): pass + + @abstractmethod + async def on_message_delete(self, message: discord.Message): pass + + @abstractmethod + async def on_bulk_message_delete(self, message: discord.Message): pass + + @abstractmethod + async def on_message_edit(self, before: discord.Message, after: discord.Message): pass + + @abstractmethod + async def on_reaction_add(self, reaction: discord.Reaction, user: discord.User): pass + + @abstractmethod + async def on_reaction_remove(self, reaction: discord.Reaction, user: discord.User): pass + + @abstractmethod + async def on_reaction_clear(self, message: discord.Message, reactions: list[discord.Reaction]): pass + + @abstractmethod + async def on_reaction_clear_emoji(self, reaction: discord.Reaction): pass + + @abstractmethod + async def on_private_channel_delete(self, channel: discord.abc.PrivateChannel): pass + + @abstractmethod + async def on_private_channel_create(self, channel: discord.abc.PrivateChannel): pass + + @abstractmethod + async def on_private_channel_update(self, before: discord.GroupChannel, after: discord.GroupChannel): pass + + @abstractmethod + async def on_private_channel_pins_update(self, channel: discord.abc.PrivateChannel, list_pin: Optional[datetime]): pass + + @abstractmethod + async def on_guild_channel_delete(self, channel: discord.abc.GuildChannel): pass + + @abstractmethod + async def on_guild_channel_create(self, channel: discord.abc.GuildChannel): pass + + @abstractmethod + async def on_guild_channel_update(self, before: discord.abc.GuildChannel, after: discord.abc.GuildChannel): pass + + @abstractmethod + async def on_guild_channel_pins_update(self, channel: discord.abc.GuildChannel, list_pin: Optional[datetime]): pass + + @abstractmethod + async def on_guild_integrations_update(self, guild: discord.Guild): pass + + @abstractmethod + async def on_webhooks_update(self, channel: discord.abc.GuildChannel): pass + + @abstractmethod + async def on_member_join(self, member: discord.Member): pass + + @abstractmethod + async def on_member_remove(self, member: discord.Member): pass + + @abstractmethod + async def on_member_update(self, before: discord.Member, after: discord.Member): pass + + @abstractmethod + async def on_user_update(self, before: discord.User, after: discord.User): pass + + @abstractmethod + async def on_guild_join(self, guild: discord.Guild): pass + + @abstractmethod + async def on_guild_remove(self, guild: discord.Guild): pass + + @abstractmethod + async def on_guild_update(self, before: discord.Guild, after: discord.Guild): pass + + @abstractmethod + async def on_guild_role_create(self, role: discord.Role): pass + + @abstractmethod + async def on_guild_role_delete(self, role: discord.Role): pass + + @abstractmethod + async def on_guild_role_update(self, before: discord.Role, after: discord.Role): pass + + @abstractmethod + async def on_guild_emojis_update(self, guild: discord.Guild, before: Sequence[discord.Emoji], after: Sequence[discord.Emoji]): pass + + @abstractmethod + async def on_guild_available(self, guild: discord.Guild): pass + + @abstractmethod + async def on_guild_unavailable(self, guild: discord.Guild): pass + + @abstractmethod + async def on_voice_state_update(self, member: discord.Member, before: discord.VoiceState,after: discord.VoiceState): pass + + @abstractmethod + async def on_member_ban(self, guild: discord.Guild, user: discord.User): pass + + @abstractmethod + async def on_member_unban(self, guild: discord.Guild, user: discord.User): pass + + @abstractmethod + async def on_invite_create(self, invite: discord.Invite): pass + + @abstractmethod + async def on_invite_delete(self, invite: discord.Invite): pass + + @abstractmethod + async def on_group_join(self, chhanel: discord.GroupChannel, user: discord.User): pass + + @abstractmethod + async def on_group_remove(self, chhanel: discord.GroupChannel, user: discord.User): pass + + @abstractmethod + async def on_relationship_add(self, relationship: discord.Relationship): pass + + @abstractmethod + async def on_relationship_remove(self, relationship: discord.Relationship): pass + + @abstractmethod + async def on_relationship_update(self, before: discord.Relationship, after: discord.Relationship): pass diff --git a/src/modules_core/service/module_service.py b/src/modules_core/service/module_service.py index 6e41724..e297f66 100644 --- a/src/modules_core/service/module_service.py +++ b/src/modules_core/service/module_service.py @@ -34,7 +34,6 @@ class ModuleService(ModuleServiceABC): async def on_message(self, message: discord.Message): self._logger.debug(__name__, 'Start on_message modules') modules = self._modules.where(lambda m: issubclass(m, OnMessageABC)) - for module_type in modules: module_type = module_type module: OnMessageABC = self._services.get_service(module_type)