aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/bot.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-07-18 13:19:11 +0100
committerGravatar Joe Banks <[email protected]>2021-07-18 13:19:11 +0100
commit2866b06e1adb515b80d4a973146ad331670c9652 (patch)
treead8ef8e3b6a571111a8e32bd441d259de048ab66 /arthur/bot.py
parentfix: import sorting (diff)
feat: add when mentioned to prefix list
Diffstat (limited to 'arthur/bot.py')
-rw-r--r--arthur/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/arthur/bot.py b/arthur/bot.py
index a14812a..c7686cc 100644
--- a/arthur/bot.py
+++ b/arthur/bot.py
@@ -16,7 +16,7 @@ class KingArthur(Bot):
"""Base bot class for King Arthur."""
def __init__(self, *args: list[Any], **kwargs: dict[str, Any]) -> None:
- config = {"command_prefix": CONFIG.prefix, "case_insensitive": True}
+ config = {"command_prefix": commands.when_mentioned_or(CONFIG.prefix), "case_insensitive": True}
kwargs.update(config)