A-0.1 - Modularer Aufbau #13
@ -30,7 +30,6 @@ class ModuleService(ModuleServiceABC):
|
||||
self._logger.debug(__name__, 'Start on_ready modules')
|
||||
modules = self._modules.where(lambda m: issubclass(m, OnReadyABC))
|
||||
for module_type in modules:
|
||||
module_type = module_type
|
||||
module: OnReadyABC = self._services.get_service(module_type)
|
||||
await module.on_ready()
|
||||
self._logger.debug(__name__, 'Stopped on_ready modules')
|
||||
@ -46,7 +45,6 @@ class ModuleService(ModuleServiceABC):
|
||||
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)
|
||||
await module.on_message(message)
|
||||
self._logger.debug(__name__, f'Stopped on_message modules')
|
||||
|
Reference in New Issue
Block a user