From baeff97f0bde1d44c12989a1a854ca806861073d Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Fri, 9 Jun 2023 22:41:06 +0800 Subject: [PATCH] Format with black --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index c6dd15580b..4a50ace6b9 100644 --- a/bot.py +++ b/bot.py @@ -1745,8 +1745,11 @@ def format_channel_name(self, author, exclude_channel=None, force_null=False): name = "null" name = new_name = ( - "".join(l for l in name if l not in string.punctuation and l.isprintable()) or "null" - ) + "" if author.discriminator == "0" else f"-{author.discriminator}" + ("".join(l for l in name if l not in string.punctuation and l.isprintable()) or "null") + + "" + if author.discriminator == "0" + else f"-{author.discriminator}" + ) counter = 1 existed = set(c.name for c in guild.text_channels if c != exclude_channel)