Skip to content

Commit 028f1fa

Browse files
yeet that wank
1 parent dd26c75 commit 028f1fa

4 files changed

Lines changed: 0 additions & 9 deletions

File tree

cogs/induct.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,10 @@ async def on_member_update(self, before: discord.Member, after: discord.Member)
8888
reason="Delete introduction reminders after member is inducted.",
8989
)
9090

91-
# noinspection PyUnusedLocal
9291
rules_channel_mention: str = "**`#welcome`**"
9392
with contextlib.suppress(RulesChannelDoesNotExistError):
9493
rules_channel_mention = (await self.bot.rules_channel).mention
9594

96-
# noinspection PyUnusedLocal
9795
roles_channel_mention: str = "**`#roles`**"
9896
with contextlib.suppress(RolesChannelDoesNotExistError):
9997
roles_channel_mention = (await self.bot.roles_channel).mention
@@ -229,7 +227,6 @@ async def _perform_induction(
229227
if not silent:
230228
general_channel: discord.TextChannel = await self.bot.general_channel
231229

232-
# noinspection PyUnusedLocal
233230
roles_channel_mention: str = "**`#roles`**"
234231
with contextlib.suppress(RolesChannelDoesNotExistError):
235232
roles_channel_mention = (await self.bot.roles_channel).mention
@@ -245,7 +242,6 @@ async def _perform_induction(
245242
reason=INDUCT_AUDIT_MESSAGE,
246243
)
247244

248-
# noinspection PyUnusedLocal
249245
applicant_role: discord.Role | None = None
250246
with contextlib.suppress(ApplicantRoleDoesNotExistError):
251247
applicant_role = await ctx.bot.applicant_role

cogs/make_member.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ async def make_member(self, ctx: "TeXBotApplicationContext", group_member_id: st
160160
)
161161
).aexists()
162162
if GROUP_MEMBER_ID_IS_ALREADY_USED:
163-
# noinspection PyUnusedLocal
164163
committee_mention: str = "committee"
165164
with contextlib.suppress(CommitteeRoleDoesNotExistError):
166165
committee_mention = (await self.bot.committee_role).mention
@@ -279,7 +278,6 @@ async def make_member(self, ctx: "TeXBotApplicationContext", group_member_id: st
279278
reason='TeX Bot slash-command: "/makemember"',
280279
)
281280

282-
# noinspection PyUnusedLocal
283281
applicant_role: discord.Role | None = None
284282
with contextlib.suppress(ApplicantRoleDoesNotExistError):
285283
applicant_role = await ctx.bot.applicant_role

cogs/send_get_roles_reminders.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ async def send_get_roles_reminders(self) -> None:
131131
if sent_get_roles_reminder_member_exists:
132132
continue
133133

134-
# noinspection PyUnusedLocal
135134
guest_role_received_time: datetime.datetime | None = None
136135
with contextlib.suppress(StopIteration, StopAsyncIteration):
137-
# noinspection PyTypeChecker
138136
guest_role_received_time = await anext(
139137
log.created_at
140138
async for log in main_guild.audit_logs(

cogs/send_introduction_reminders.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ async def send_introduction_reminders(self) -> None:
132132
continue
133133

134134
async for message in member.history():
135-
# noinspection PyUnresolvedReferences
136135
MESSAGE_CONTAINS_OPT_IN_OUT_BUTTON: bool = bool(
137136
bool(message.components)
138137
and isinstance(message.components[0], discord.ActionRow)

0 commit comments

Comments
 (0)