aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/bot/bot.py b/bot/bot.py
index c6ec3357..ab196bc1 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -2,8 +2,7 @@ import asyncio
import contextlib
import logging
import socket
-from traceback import format_exc
-from typing import List, Optional
+from typing import Optional
import async_timeout
import discord
@@ -27,23 +26,6 @@ class SeasonalBot(commands.Bot):
connector=TCPConnector(resolver=AsyncResolver(), family=socket.AF_INET)
)
- def load_extensions(self, exts: List[str]) -> None:
- """Unload all current extensions, then load the given extensions."""
- # Unload all cogs
- extensions = list(self.extensions.keys())
- for extension in extensions:
- if extension not in ["bot.branding", "bot.help"]: # We shouldn't unload the manager and help.
- self.unload_extension(extension)
-
- # Load in the list of cogs that was passed in here
- for extension in exts:
- cog = extension.split(".")[-1]
- try:
- self.load_extension(extension)
- log.info(f'Successfully loaded extension: {cog}')
- except Exception as e:
- log.error(f'Failed to load extension {cog}: {repr(e)} {format_exc()}')
-
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)