From 089de53136fe50010f6cfc172c5d9f03b49548d2 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 12 Apr 2023 22:04:49 +0200 Subject: [PATCH] Fixed is ready function #309 --- kdb-bot/src/bot_core/helper/event_checks.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kdb-bot/src/bot_core/helper/event_checks.py b/kdb-bot/src/bot_core/helper/event_checks.py index dbf241ab..5639a3da 100644 --- a/kdb-bot/src/bot_core/helper/event_checks.py +++ b/kdb-bot/src/bot_core/helper/event_checks.py @@ -1,13 +1,9 @@ from typing import Optional -from cpl_translation import TranslatePipe 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.exception.check_error import CheckError -from modules.permission.abc.permission_service_abc import PermissionServiceABC class EventChecks: @@ -23,7 +19,7 @@ class EventChecks: @classmethod def check_is_ready(cls): async def check_if_bot_is_ready() -> bool: - result = await cls._client_utils.check_if_bot_is_ready() + result = await cls._client_utils.check_if_bot_is_ready_yet() if not result: raise CheckError(f"Bot is not ready") return result