Skip to content

Commit ac698d4

Browse files
ci: auto fixes from pre-commit.com hooks
1 parent cbd8ce7 commit ac698d4

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed

exts/help_forum.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ async def first_message_for_help(self, event: ipy.events.NewThreadCreate):
6464

6565
try:
6666
message = await thread.send(
67-
(
68-
"Thank you for using the help system! Please wait for someone to"
69-
" help you.\nOnce your issue is solved, press the button below to"
70-
" close this thread."
71-
),
67+
"Thank you for using the help system! Please wait for someone to"
68+
" help you.\nOnce your issue is solved, press the button below to"
69+
" close this thread.",
7270
components=[[select], [close_button]],
7371
)
7472
except ipy.errors.HTTPException:
@@ -77,11 +75,9 @@ async def first_message_for_help(self, event: ipy.events.NewThreadCreate):
7775
# so we're just waiting for discord to get the memo
7876
await asyncio.sleep(5)
7977
message = await thread.send(
80-
(
81-
"Thank you for using the help system! Please wait for someone to"
82-
" help you.\nOnce your issue is solved, press the button below to"
83-
" close this thread."
84-
),
78+
"Thank you for using the help system! Please wait for someone to"
79+
" help you.\nOnce your issue is solved, press the button below to"
80+
" close this thread.",
8581
components=[[select], [close_button]],
8682
)
8783

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)