Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Jun 9, 2023
1 parent 0d8157e commit baeff97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit baeff97

Please sign in to comment.