Skip to content

Commit a3cf6cb

Browse files
Remove remindme functionality (#825)
1 parent 450accd commit a3cf6cb

5 files changed

Lines changed: 3 additions & 376 deletions

File tree

‎cogs/__init__.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from .make_applicant import MakeApplicantContextCommandsCog, MakeApplicantSlashCommandCog
3838
from .make_member import MakeMemberCommandCog, MemberCountCommandCog
3939
from .ping import PingCommandCog
40-
from .remind_me import ClearRemindersBacklogTaskCog, RemindMeCommandCog
4140
from .send_get_roles_reminders import SendGetRolesRemindersTaskCog
4241
from .send_introduction_reminders import SendIntroductionRemindersTaskCog
4342
from .source import SourceCommandCog
@@ -78,7 +77,6 @@
7877
"ManualModerationCog",
7978
"MemberCountCommandCog",
8079
"PingCommandCog",
81-
"RemindMeCommandCog",
8280
"SendGetRolesRemindersTaskCog",
8381
"SendIntroductionRemindersTaskCog",
8482
"SourceCommandCog",
@@ -98,7 +96,6 @@ def setup(bot: "TeXBot") -> None:
9896
AnnualRolesResetCommandCog,
9997
AnnualYearChannelsIncrementCommandCog,
10098
ArchiveCommandsCog,
101-
ClearRemindersBacklogTaskCog,
10299
CommandErrorCog,
103100
CommitteeActionsTrackingSlashCommandsCog,
104101
CommitteeActionsTrackingContextCommandCog,
@@ -119,7 +116,6 @@ def setup(bot: "TeXBot") -> None:
119116
ManualModerationCog,
120117
MemberCountCommandCog,
121118
PingCommandCog,
122-
RemindMeCommandCog,
123119
SendGetRolesRemindersTaskCog,
124120
SendIntroductionRemindersTaskCog,
125121
SourceCommandCog,

‎cogs/delete_all.py‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from db.core.models import (
88
AssignedCommitteeAction,
99
DiscordMemberStrikes,
10-
DiscordReminder,
1110
GroupMadeMember,
1211
SentGetRolesReminderMember,
1312
SentOneOffIntroductionReminderMember,
@@ -50,20 +49,6 @@ async def _delete_all(
5049
f"All {delete_model_instances_name_plural} deleted successfully.", ephemeral=True
5150
)
5251

53-
@delete_all.command(
54-
name="reminders", description="Deletes all Reminders from the backend database."
55-
)
56-
@CommandChecks.check_interaction_user_has_committee_role
57-
@CommandChecks.check_interaction_user_in_main_guild
58-
async def delete_all_reminders(self, ctx: "TeXBotApplicationContext") -> None:
59-
"""
60-
Definition & callback response of the "delete_all_reminders" command.
61-
62-
The "delete_all_reminders" command uses the _delete_all() function
63-
to delete all `DiscordReminder` instance objects stored in the database.
64-
"""
65-
await self._delete_all(ctx, delete_model=DiscordReminder)
66-
6752
@delete_all.command(
6853
name="group-made-members",
6954
description="Deletes all Group Made Members from the backend database.",

0 commit comments

Comments
 (0)