diff options
author | 2020-07-06 17:15:45 +0000 | |
---|---|---|
committer | 2020-07-06 17:15:45 +0000 | |
commit | 420171bc5d472868f5fb96c8960731eea4d67c5d (patch) | |
tree | 31273d974d4896add2aee2f9188cfbb77d74b474 | |
parent | Improve set_slowmode tests by checking whether the channel was edited (diff) |
Move slowmode cog to the moderation subpackage
-rw-r--r-- | bot/__main__.py | 1 | ||||
-rw-r--r-- | bot/cogs/moderation/__init__.py | 4 | ||||
-rw-r--r-- | bot/cogs/moderation/slowmode.py (renamed from bot/cogs/slowmode.py) | 0 |
3 files changed, 3 insertions, 2 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index bbd9c9144..4e0d4a111 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -62,7 +62,6 @@ bot.load_extension("bot.cogs.off_topic_names") bot.load_extension("bot.cogs.reddit") bot.load_extension("bot.cogs.reminders") bot.load_extension("bot.cogs.site") -bot.load_extension("bot.cogs.slowmode") bot.load_extension("bot.cogs.snekbox") bot.load_extension("bot.cogs.stats") bot.load_extension("bot.cogs.sync") diff --git a/bot/cogs/moderation/__init__.py b/bot/cogs/moderation/__init__.py index 6880ca1bd..a5c1ef362 100644 --- a/bot/cogs/moderation/__init__.py +++ b/bot/cogs/moderation/__init__.py @@ -3,13 +3,15 @@ from .infractions import Infractions from .management import ModManagement from .modlog import ModLog from .silence import Silence +from .slowmode import Slowmode from .superstarify import Superstarify def setup(bot: Bot) -> None: - """Load the Infractions, ModManagement, ModLog, Silence, and Superstarify cogs.""" + """Load the Infractions, ModManagement, ModLog, Silence, Slowmode, and Superstarify cogs.""" bot.add_cog(Infractions(bot)) bot.add_cog(ModLog(bot)) bot.add_cog(ModManagement(bot)) bot.add_cog(Silence(bot)) + bot.add_cog(Slowmode(bot)) bot.add_cog(Superstarify(bot)) diff --git a/bot/cogs/slowmode.py b/bot/cogs/moderation/slowmode.py index 1d055afac..1d055afac 100644 --- a/bot/cogs/slowmode.py +++ b/bot/cogs/moderation/slowmode.py |