-
Notifications
You must be signed in to change notification settings - Fork 6
/
__init__.py
124 lines (113 loc) · 3.78 KB
/
__init__.py
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
"""
Contains all cogs.
Cogs are attachable modules that are loaded onto the discord.Bot instance. There are separate
cogs for each activity.
"""
from collections.abc import Sequence
__all__: Sequence[str] = (
"AnnualRolesResetCommandCog",
"AnnualYearChannelsIncrementCommandCog",
"ArchiveCommandCog",
"ClearRemindersBacklogTaskCog",
"CommandErrorCog",
"CommitteeActionsTrackingSlashCommandsCog",
"CommitteeActionsTrackingContextCommandsCog",
"CommitteeHandoverCommandCog",
"DeleteAllCommandsCog",
"EditMessageCommandCog",
"EnsureMembersInductedCommandCog",
"GetTokenAuthorisationCommandCog",
"InductContextCommandsCog",
"InductSendMessageCog",
"InductSlashCommandCog",
"KillCommandCog",
"MakeApplicantContextCommandsCog",
"MakeApplicantSlashCommandCog",
"MakeMemberCommandCog",
"ManualModerationCog",
"PingCommandCog",
"RemindMeCommandCog",
"SendGetRolesRemindersTaskCog",
"SendIntroductionRemindersTaskCog",
"setup",
"SourceCommandCog",
"StartupCog",
"StatsCommandsCog",
"StrikeCommandCog",
"StrikeUserCommandCog",
"WriteRolesCommandCog",
)
from typing import TYPE_CHECKING
from utils import TeXBot
from .annual_handover_and_reset import (
AnnualRolesResetCommandCog,
AnnualYearChannelsIncrementCommandCog,
CommitteeHandoverCommandCog,
)
from .archive import ArchiveCommandCog
from .command_error import CommandErrorCog
from .committee_actions_tracking import (
CommitteeActionsTrackingContextCommandsCog,
CommitteeActionsTrackingSlashCommandsCog,
)
from .delete_all import DeleteAllCommandsCog
from .edit_message import EditMessageCommandCog
from .get_token_authorisation import GetTokenAuthorisationCommandCog
from .induct import (
EnsureMembersInductedCommandCog,
InductContextCommandsCog,
InductSendMessageCog,
InductSlashCommandCog,
)
from .kill import KillCommandCog
from .make_applicant import MakeApplicantContextCommandsCog, MakeApplicantSlashCommandCog
from .make_member import MakeMemberCommandCog
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, StrikeCommandCog, StrikeUserCommandCog
from .write_roles import WriteRolesCommandCog
if TYPE_CHECKING:
from collections.abc import Iterable
from utils import TeXBotBaseCog
def setup(bot: TeXBot) -> None:
"""Add all the cogs to the bot, at bot startup."""
cogs: Iterable[type[TeXBotBaseCog]] = (
AnnualRolesResetCommandCog,
AnnualYearChannelsIncrementCommandCog,
ArchiveCommandCog,
ClearRemindersBacklogTaskCog,
CommandErrorCog,
CommitteeActionsTrackingSlashCommandsCog,
CommitteeActionsTrackingContextCommandsCog,
CommitteeHandoverCommandCog,
DeleteAllCommandsCog,
EditMessageCommandCog,
EnsureMembersInductedCommandCog,
GetTokenAuthorisationCommandCog,
InductContextCommandsCog,
InductSendMessageCog,
InductSlashCommandCog,
KillCommandCog,
MakeApplicantContextCommandsCog,
MakeApplicantSlashCommandCog,
MakeMemberCommandCog,
ManualModerationCog,
PingCommandCog,
RemindMeCommandCog,
SendGetRolesRemindersTaskCog,
SendIntroductionRemindersTaskCog,
SourceCommandCog,
StartupCog,
StatsCommandsCog,
StrikeCommandCog,
StrikeUserCommandCog,
WriteRolesCommandCog,
)
Cog: type[TeXBotBaseCog]
for Cog in cogs:
bot.add_cog(Cog(bot))