Skip to content

Commit f3e2da3

Browse files
committed
update and run ruff
1 parent 71a48f3 commit f3e2da3

File tree

5 files changed

+137
-129
lines changed

5 files changed

+137
-129
lines changed

core/utils/paginator.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ async def stop_pages(self, interaction: discord.Interaction | None = None) -> No
237237
stop = stop_pages # type: ignore
238238

239239
def _check(self, interaction: discord.Interaction) -> bool:
240-
if interaction.user.id != self.author.id:
241-
return False
242-
243-
return True
240+
return interaction.user.id == self.author.id
244241

245242
async def interaction_check(self, interaction: discord.Interaction) -> bool:
246243
resp = self._check(interaction)

launcher.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async def main() -> None:
7070
tasks.add(asyncio.create_task(bot.start(core.CONFIG["TOKENS"]["bot"])))
7171
await server.serve()
7272

73+
7374
try:
7475
asyncio.run(main())
7576
except KeyboardInterrupt:

modules/help.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ def predicate(ctx: Context) -> bool:
7373
if not isinstance(channel, discord.Thread):
7474
return False
7575

76-
if channel.parent_id != Channels.HELP_FORUM:
77-
return False
78-
79-
return True
76+
return channel.parent_id == Channels.HELP_FORUM
8077

8178
return commands.check(predicate)
8279

0 commit comments

Comments
 (0)