aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 47d63de9..3e20e3ab 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -33,6 +33,15 @@ class SeasonalBot(commands.Bot):
connector=TCPConnector(resolver=AsyncResolver(), family=socket.AF_INET)
)
+ def add_cog(self, cog: commands.Cog) -> None:
+ """
+ Delegate to super to register `cog`.
+
+ This only serves to make the info log, so that extensions don't have to.
+ """
+ super().add_cog(cog)
+ log.info(f"Cog loaded: {cog.qualified_name}")
+
async def send_log(self, title: str, details: str = None, *, icon: str = None) -> None:
"""Send an embed message to the devlog channel."""
devlog = self.get_channel(Channels.devlog)