diff options
author | 2022-02-21 03:11:54 +0000 | |
---|---|---|
committer | 2022-02-21 03:11:54 +0000 | |
commit | 02f926a95d4a041f8e9689eef7ec6cb4bf4053eb (patch) | |
tree | 3b02967734052f3aa2f9f16e0601bd309adb88cb | |
parent | Edit deployment interaction messages, rather than send new (#13) (diff) |
Add M-x to prefixes (#14)
-rw-r--r-- | arthur/bot.py | 2 | ||||
-rw-r--r-- | arthur/config.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arthur/bot.py b/arthur/bot.py index 9b6d56e..2bbb69c 100644 --- a/arthur/bot.py +++ b/arthur/bot.py @@ -17,7 +17,7 @@ class KingArthur(Bot): def __init__(self, *args: list[Any], **kwargs: dict[str, Any]) -> None: config = { - "command_prefix": commands.when_mentioned_or(CONFIG.prefix), + "command_prefix": commands.when_mentioned_or(*CONFIG.prefixes), "case_insensitive": True, } diff --git a/arthur/config.py b/arthur/config.py index 03eab03..78131d4 100644 --- a/arthur/config.py +++ b/arthur/config.py @@ -9,7 +9,7 @@ class Config(BaseSettings): token: str # Discord bot prefix - prefix: str = "arthur " + prefixes: list[str] = ["arthur ", "M-x"] # Authorised role ID for usage devops_role: int = 409416496733880320 |