Skip to content

Commit dbdd6cd

Browse files
committed
Run black
1 parent 205fd46 commit dbdd6cd

6 files changed

Lines changed: 9 additions & 23 deletions

File tree

techsupport_bot/bot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ def __init__(
7171
self.guild_configs: dict[str, munch.Munch] = {}
7272
self.extension_configs = munch.DefaultMunch(None)
7373
self.extension_states = munch.DefaultMunch(None)
74-
self.command_rate_limit_bans: expiringdict.ExpiringDict[str, bool] = (
75-
expiringdict.ExpiringDict(
76-
max_len=5000,
77-
max_age_seconds=600,
78-
)
74+
self.command_rate_limit_bans: expiringdict.ExpiringDict[
75+
str, bool
76+
] = expiringdict.ExpiringDict(
77+
max_len=5000,
78+
max_age_seconds=600,
7979
)
8080
self.command_execute_history: dict[str, dict[int, bool]] = {}
8181

techsupport_bot/commands/factoids.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,9 +1891,7 @@ async def send_factoids_as_file(
18911891

18921892
yaml_file = discord.File(
18931893
io.StringIO(yaml.dump(output_data)),
1894-
filename=(
1895-
f"factoids-for-server-{guild.id}-{datetime.datetime.now()}.yaml"
1896-
),
1894+
filename=(f"factoids-for-server-{guild.id}-{datetime.datetime.now()}.yaml"),
18971895
)
18981896

18991897
# Returns the file

techsupport_bot/commands/modmail.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ async def on_message_edit(
153153
isinstance(before.channel, discord.DMChannel)
154154
and before.author.id in active_threads
155155
):
156-
157156
if await Ts_client.models.ModmailBan.query.where(
158157
Ts_client.models.ModmailBan.user_id == str(before.author.id)
159158
).gino.first():
@@ -452,7 +451,6 @@ async def create_thread(
452451
if not thread.name.startswith("[OPEN]") and thread.name.split("|")[
453452
-1
454453
].strip() == str(user.id):
455-
456454
past_thread_count += 1
457455

458456
if past_thread_count == 0:
@@ -1197,7 +1195,6 @@ async def contact(self: Self, ctx: commands.Context, user: discord.User) -> None
11971195
)
11981196

11991197
case ui.ConfirmResponse.CONFIRMED:
1200-
12011198
# Makes sure the user can reply if they were timed out from creating threads
12021199
if user.id in delayed_people:
12031200
del delayed_people[user.id]
@@ -1207,7 +1204,6 @@ async def contact(self: Self, ctx: commands.Context, user: discord.User) -> None
12071204
user=user,
12081205
source_channel=ctx.channel,
12091206
):
1210-
12111207
await auxiliary.send_confirm_embed(
12121208
message="Thread successfully created!", channel=ctx.channel
12131209
)
@@ -1259,7 +1255,6 @@ async def selfcontact(self: Self, ctx: commands.Context) -> None:
12591255
)
12601256

12611257
case ui.ConfirmResponse.CONFIRMED:
1262-
12631258
# Makes sure the user can reply if they were timed out from creating threads
12641259
if ctx.author in delayed_people:
12651260
del delayed_people[ctx.author.id]
@@ -1269,7 +1264,6 @@ async def selfcontact(self: Self, ctx: commands.Context) -> None:
12691264
user=ctx.author,
12701265
source_channel=ctx.channel,
12711266
):
1272-
12731267
await auxiliary.send_confirm_embed(
12741268
message="Thread successfully created!", channel=ctx.channel
12751269
)

techsupport_bot/commands/protect.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ class Protector(cogs.MatchCog):
154154
155155
"""
156156

157-
ALERT_ICON_URL: str = (
158-
"https://www.iconarchive.com/download/i76061/martz90/circle-addon2/warning.512.png"
159-
)
157+
ALERT_ICON_URL: str = "https://www.iconarchive.com/download/i76061/martz90/circle-addon2/warning.512.png"
160158
CLIPBOARD_ICON_URL: str = (
161159
"https://www.iconarchive.com/download/i107916/"
162160
"google/noto-emoji-objects/62930-clipboard.512.png"

techsupport_bot/commands/urban.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ class UrbanDictionary(cogs.BaseCog):
4444

4545
BASE_URL: str = "http://api.urbandictionary.com/v0/define?term="
4646
SEE_MORE_URL: str = "https://www.urbandictionary.com/define.php?term="
47-
ICON_URL: str = (
48-
"https://www.iconarchive.com/download/i79897/dtafalonso/ios7-desktop/Dictionary.256.png"
49-
)
47+
ICON_URL: str = "https://www.iconarchive.com/download/i79897/dtafalonso/ios7-desktop/Dictionary.256.png"
5048

5149
@auxiliary.with_typing
5250
@commands.command(

techsupport_bot/commands/wolfram.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class Wolfram(cogs.BaseCog):
4242
"""
4343

4444
API_URL: str = "http://api.wolframalpha.com/v1/result?appid={}&i={}"
45-
ICON_URL: str = (
46-
"https://images.seeklogo.com/logo-png/42/1/mathematica-logo-png_seeklogo-428539.png"
47-
)
45+
ICON_URL: str = "https://images.seeklogo.com/logo-png/42/1/mathematica-logo-png_seeklogo-428539.png"
4846

4947
@auxiliary.with_typing
5048
@commands.command(

0 commit comments

Comments
 (0)