aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/__init__.py2
-rw-r--r--bot/__main__.py7
2 files changed, 2 insertions, 7 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index c7d360408..d005c854d 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -232,8 +232,6 @@ def _get_word(self) -> str:
self.end = len(self.buffer)
log.trace(f"Mimicked command: {self.buffer}")
- if isinstance(result, str):
- return result.lower() # Case insensitivity, baby
return result
diff --git a/bot/__main__.py b/bot/__main__.py
index 2bcf70adc..72e639851 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -6,7 +6,6 @@ from discord import Game
from discord.ext.commands import AutoShardedBot, when_mentioned_or
from bot.formatter import Formatter
-from bot.utils import CaseInsensitiveDict
bot = AutoShardedBot(
command_prefix=when_mentioned_or(
@@ -19,12 +18,10 @@ bot = AutoShardedBot(
"name": "help()",
"aliases": ["help"]
},
- formatter=Formatter()
+ formatter=Formatter(),
+ case_insensitive=True
)
-# Make cog names case-insensitive
-bot.cogs = CaseInsensitiveDict()
-
# Global aiohttp session for all cogs - uses asyncio for DNS resolution instead of threads, so we don't *spam threads*
bot.http_session = ClientSession(connector=TCPConnector(resolver=AsyncResolver()))