Changed banner
This commit is contained in:
		| @@ -1,17 +1,13 @@ | ||||
| from datetime import datetime | ||||
|  | ||||
| import discord | ||||
| from discord import guild | ||||
| from async_timeout import asyncio | ||||
| from cpl_core.configuration import ConfigurationABC | ||||
| from cpl_core.console import Console | ||||
| from cpl_core.environment import ApplicationEnvironmentABC | ||||
| from cpl_core.logging import LoggerABC, LoggingLevelEnum, LoggingSettings | ||||
| from cpl_core.logging import LoggerABC | ||||
| from discord import guild | ||||
| from gismo_core.abc.bot_service_abc import BotServiceABC | ||||
| from gismo_core.abc.message_service_abc import MessageServiceABC | ||||
| from gismo_core.configuration.server_settings import ServerSettings | ||||
| from modules_core.abc.module_abc import ModuleABC | ||||
| from modules_core.abc.events.on_ready_abc import OnReadyABC | ||||
| from modules_core.abc.module_abc import ModuleABC | ||||
|  | ||||
|  | ||||
| class BootLog(ModuleABC, OnReadyABC): | ||||
| @@ -19,15 +15,11 @@ class BootLog(ModuleABC, OnReadyABC): | ||||
|     def __init__( | ||||
|         self, | ||||
|         config: ConfigurationABC, | ||||
|         env: ApplicationEnvironmentABC, | ||||
|         logging_st: LoggingSettings, | ||||
|         logger: LoggerABC, | ||||
|         bot: BotServiceABC, | ||||
|         message_service: MessageServiceABC | ||||
|     ): | ||||
|         self._config = config | ||||
|         self._env = env | ||||
|         self._logging_st = logging_st | ||||
|  | ||||
|         self._logger = logger | ||||
|         self._bot = bot | ||||
| @@ -62,10 +54,6 @@ class BootLog(ModuleABC, OnReadyABC): | ||||
|             self._logger.error(__name__, 'Init time calculation failed', e) | ||||
|             return | ||||
|  | ||||
|         self._logger.header(f'{self._bot.user.name}:') | ||||
|         if self._logging_st.console.value >= LoggingLevelEnum.INFO.value: | ||||
|             Console.banner(self._env.application_name if self._env.application_name != '' else 'Gismo') | ||||
|  | ||||
|         for g in self._bot.guilds: | ||||
|             g: guild = g | ||||
|             self._logger.debug(__name__, f'Server detected: {g.id}') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user