From 2866b06e1adb515b80d4a973146ad331670c9652 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 18 Jul 2021 13:19:11 +0100 Subject: feat: add when mentioned to prefix list --- arthur/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/bot.py') 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) -- cgit v1.2.3