Skip to content

Commit 3a8d50c

Browse files
ci: auto fixes from pre-commit.com hooks
1 parent e931cbf commit 3a8d50c

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

exts/on_cmd_error.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ async def on_command_error(
2626
)
2727
await event.ctx.send(
2828
embeds=utils.error_embed_generate(
29-
"You're doing that command too fast! "
30-
+ "Try again in"
29+
"You're doing that command too fast! " + "Try again in"
3130
f" `{humanize.precisedelta(delta_wait, format='%0.0f')}`."
3231
)
3332
)

exts/other_cmds.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,23 @@ async def about(self, ctx: ipy.InteractionContext):
8585

8686
about_embed.add_field(
8787
name="Stats:",
88-
value="\n".join(
88+
value="\n".join((
89+
f"Servers: {len(self.bot.guilds)}",
90+
f"Commands: {command_num} ",
8991
(
90-
f"Servers: {len(self.bot.guilds)}",
91-
f"Commands: {command_num} ",
92-
(
93-
"Startup Time:"
94-
f" {ipy.Timestamp.fromdatetime(self.bot.start_time).format(ipy.TimestampStyles.RelativeTime)}"
95-
),
96-
(
97-
"Commit Hash:"
98-
f" [{commit_hash}](https://github.com/AstreaTSS/AstreasGalaxyBot/commit/{commit_hash})"
99-
),
100-
(
101-
"Interactions.py Version:"
102-
f" [{IPY_VERSION}](https://github.com/interactions-py/interactions.py/tree/{IPY_VERSION})"
103-
),
104-
"Made By: [AstreaTSS](https://github.com/AstreaTSS)",
105-
)
106-
),
92+
"Startup Time:"
93+
f" {ipy.Timestamp.fromdatetime(self.bot.start_time).format(ipy.TimestampStyles.RelativeTime)}"
94+
),
95+
(
96+
"Commit Hash:"
97+
f" [{commit_hash}](https://github.com/AstreaTSS/AstreasGalaxyBot/commit/{commit_hash})"
98+
),
99+
(
100+
"Interactions.py Version:"
101+
f" [{IPY_VERSION}](https://github.com/interactions-py/interactions.py/tree/{IPY_VERSION})"
102+
),
103+
"Made By: [AstreaTSS](https://github.com/AstreaTSS)",
104+
)),
107105
inline=True,
108106
)
109107

0 commit comments

Comments
 (0)