-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path__init__.py
More file actions
135 lines (127 loc) · 4.37 KB
/
__init__.py
File metadata and controls
135 lines (127 loc) · 4.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
"""
Contains all cogs.
Cogs are attachable modules that are loaded onto the discord.Bot instance. There are separate
cogs for each activity.
"""
from typing import TYPE_CHECKING
from .add_users_to_threads_and_channels import AddUsersToThreadsAndChannelsCommandsCog
from .annual_handover_and_reset import (
AnnualRolesResetCommandCog,
AnnualYearChannelsIncrementCommandCog,
CommitteeHandoverCommandCog,
)
from .archive import ArchiveCommandsCog
from .check_su_platform_authorisation import (
CheckSUPlatformAuthorisationCommandCog,
CheckSUPlatformAuthorisationTaskCog,
)
from .command_error import CommandErrorCog
from .committee_actions_tracking import (
CommitteeActionsTrackingContextCommandCog,
CommitteeActionsTrackingSlashCommandsCog,
)
from .delete_all import DeleteAllCommandsCog
from .edit_message import EditMessageCommandCog
from .everest import EverestCommandCog
from .induct import (
EnsureMembersInductedCommandCog,
InductContextCommandsCog,
InductSendMessageCog,
InductSlashCommandCog,
)
from .invite_link import InviteLinkCommandCog
from .kill import KillCommandCog
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
from .startup import StartupCog
from .stats import StatsCommandsCog
from .strike import ManualModerationCog, StrikeCommandsCog, StrikeContextCommandsCog
from .write_roles import WriteRolesCommandCog
if TYPE_CHECKING:
from collections.abc import Iterable, Sequence
from utils import TeXBot, TeXBotBaseCog
__all__: "Sequence[str]" = (
"AddUsersToThreadsAndChannelsCommandCog",
"AnnualRolesResetCommandCog",
"AnnualYearChannelsIncrementCommandCog",
"ArchiveCommandCog",
"CheckSUPlatformAuthorisationCommandCog",
"CheckSUPlatformAuthorisationTaskCog",
"ClearRemindersBacklogTaskCog",
"CommandErrorCog",
"CommitteeActionsTrackingContextCommandsCog",
"CommitteeActionsTrackingSlashCommandsCog",
"CommitteeHandoverCommandCog",
"DeleteAllCommandsCog",
"EditMessageCommandCog",
"EnsureMembersInductedCommandCog",
"EverestCommandCog",
"InductContextCommandsCog",
"InductSendMessageCog",
"InductSlashCommandCog",
"InviteLinkCommandCog",
"KillCommandCog",
"MakeApplicantContextCommandsCog",
"MakeApplicantSlashCommandCog",
"MakeMemberCommandCog",
"ManualModerationCog",
"MemberCountCommandCog",
"PingCommandCog",
"RemindMeCommandCog",
"SendGetRolesRemindersTaskCog",
"SendIntroductionRemindersTaskCog",
"SourceCommandCog",
"StartupCog",
"StatsCommandsCog",
"StrikeCommandCog",
"StrikeContextCommandsCog",
"WriteRolesCommandCog",
"setup",
)
def setup(bot: "TeXBot") -> None:
"""Add all the cogs to the bot, at bot startup."""
cogs: Iterable[type[TeXBotBaseCog]] = (
AddUsersToThreadsAndChannelsCommandsCog,
AnnualRolesResetCommandCog,
AnnualYearChannelsIncrementCommandCog,
ArchiveCommandsCog,
ClearRemindersBacklogTaskCog,
CommandErrorCog,
CommitteeActionsTrackingSlashCommandsCog,
CommitteeActionsTrackingContextCommandCog,
CommitteeHandoverCommandCog,
DeleteAllCommandsCog,
EditMessageCommandCog,
EnsureMembersInductedCommandCog,
EverestCommandCog,
CheckSUPlatformAuthorisationCommandCog,
InductContextCommandsCog,
InductSendMessageCog,
InductSlashCommandCog,
KillCommandCog,
InviteLinkCommandCog,
MakeApplicantContextCommandsCog,
MakeApplicantSlashCommandCog,
MakeMemberCommandCog,
ManualModerationCog,
MemberCountCommandCog,
PingCommandCog,
RemindMeCommandCog,
SendGetRolesRemindersTaskCog,
SendIntroductionRemindersTaskCog,
SourceCommandCog,
StartupCog,
StatsCommandsCog,
StrikeCommandsCog,
StrikeContextCommandsCog,
CheckSUPlatformAuthorisationTaskCog,
WriteRolesCommandCog,
)
Cog: type[TeXBotBaseCog]
for Cog in cogs:
bot.add_cog(Cog(bot))