From cd52adf61f85630e983bec9c9c17fbdab316b87d Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:31:36 -0300 Subject: [PATCH] fix(bot): :bug: `p.fr` command. --- payphone/cogs/calls/cog.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 92e0df1..5c45b50 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -76,8 +76,7 @@ class Calls(base.Cog): @hangup_calls.before_loop async def before_hangup_calls(self): - """Wait until the bot is ready to start looping. - """ + """Wait until the bot is ready to start looping.""" await self.bot.wait_until_ready() await asyncio.wait(5) @@ -597,7 +596,7 @@ class Calls(base.Cog): channel_id = ctx.channel.id call = await models.Call.get(channels__id=channel_id).prefetch_related( - "channels", "call_rss" + "channels", "call_rss", "call_rss__profile" ) other_channel = find(lambda c: c.id != channel_id, call.channels) @@ -607,7 +606,7 @@ class Calls(base.Cog): try: await self.bot.get_partial_messageable(other_channel.id).send( - f"**{call_rs.mask_emoji + " " if call_rs.is_masked else None} {call_rs.display_name}** (`{ctx.author.name}`) wants you to add them as a friend on Discord." + f"**{call_rs.mask_emoji + " " if call_rs.is_masked else ""}{call_rs.display_name}** (`{ctx.author.name}`) wants you to add them as a friend on Discord." ) except errors.DiscordException: