Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
from .make_applicant import MakeApplicantContextCommandsCog, MakeApplicantSlashCommandCog
from .make_member import MakeMemberCommandCog, MemberCountCommandCog
from .ping import PingCommandCog
from .remind_me import ClearRemindersBacklogTaskCog, RemindMeCommandCog
from .send_get_roles_reminders import SendGetRolesRemindersTaskCog
from .send_introduction_reminders import SendIntroductionRemindersTaskCog
from .source import SourceCommandCog
Expand Down Expand Up @@ -78,7 +77,6 @@
"ManualModerationCog",
"MemberCountCommandCog",
"PingCommandCog",
"RemindMeCommandCog",
"SendGetRolesRemindersTaskCog",
"SendIntroductionRemindersTaskCog",
"SourceCommandCog",
Expand All @@ -98,7 +96,6 @@ def setup(bot: "TeXBot") -> None:
AnnualRolesResetCommandCog,
AnnualYearChannelsIncrementCommandCog,
ArchiveCommandsCog,
ClearRemindersBacklogTaskCog,
CommandErrorCog,
CommitteeActionsTrackingSlashCommandsCog,
CommitteeActionsTrackingContextCommandCog,
Expand All @@ -119,7 +116,6 @@ def setup(bot: "TeXBot") -> None:
ManualModerationCog,
MemberCountCommandCog,
PingCommandCog,
RemindMeCommandCog,
SendGetRolesRemindersTaskCog,
SendIntroductionRemindersTaskCog,
SourceCommandCog,
Expand Down
15 changes: 0 additions & 15 deletions cogs/delete_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from db.core.models import (
AssignedCommitteeAction,
DiscordMemberStrikes,
DiscordReminder,
GroupMadeMember,
SentGetRolesReminderMember,
SentOneOffIntroductionReminderMember,
Expand Down Expand Up @@ -50,20 +49,6 @@ async def _delete_all(
f"All {delete_model_instances_name_plural} deleted successfully.", ephemeral=True
)

@delete_all.command(
name="reminders", description="Deletes all Reminders from the backend database."
)
@CommandChecks.check_interaction_user_has_committee_role
@CommandChecks.check_interaction_user_in_main_guild
async def delete_all_reminders(self, ctx: "TeXBotApplicationContext") -> None:
"""
Definition & callback response of the "delete_all_reminders" command.

The "delete_all_reminders" command uses the _delete_all() function
to delete all `DiscordReminder` instance objects stored in the database.
"""
await self._delete_all(ctx, delete_model=DiscordReminder)

@delete_all.command(
name="group-made-members",
description="Deletes all Group Made Members from the backend database.",
Expand Down
Loading