From 7b9f3248917f76817b1bdd5cac5fa5110e31d0a7 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Sun, 26 Jun 2022 19:20:30 +0400 Subject: Clean Up Startup Ping Function The function was missing the self arg, which would lead to an exception at startup for any projects that don't override it. It's also not being awaited despite being an async function. Signed-off-by: Hassan Abouelela --- botcore/_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'botcore/_bot.py') diff --git a/botcore/_bot.py b/botcore/_bot.py index e9eba5c5..ed31d624 100644 --- a/botcore/_bot.py +++ b/botcore/_bot.py @@ -197,7 +197,7 @@ class BotBase(commands.Bot): if not guild.roles or not guild.members or not guild.channels: msg = "Guild available event was dispatched but the cache appears to still be empty!" - self.log_to_dev_log(msg) + await self.log_to_dev_log(msg) return self._guild_available.set() @@ -249,7 +249,7 @@ class BotBase(commands.Bot): except Exception as e: raise StartupError(e) - async def ping_services() -> None: + async def ping_services(self) -> None: """Ping all required services on setup to ensure they are up before starting.""" ... -- cgit v1.2.3