From 9c833249f30418cd72bb0486eb473c43103fc03e Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 16 May 2024 23:35:43 +0000 Subject: [PATCH] strip_after_prefix=True --- nightly/nightly/bot.py | 1 + starbot/starbot/bot.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nightly/nightly/bot.py b/nightly/nightly/bot.py index 8e15de3..38991a9 100644 --- a/nightly/nightly/bot.py +++ b/nightly/nightly/bot.py @@ -6,5 +6,6 @@ class NightlyBot(commands.Bot): def __init__(self) -> None: super().__init__( command_prefix="🌟", + strip_after_prefix=True, intents=discord.Intents(message_content=True, guild_messages=True, guild_reactions=True, guilds=True), ) diff --git a/starbot/starbot/bot.py b/starbot/starbot/bot.py index ceb1bbe..7f094c9 100644 --- a/starbot/starbot/bot.py +++ b/starbot/starbot/bot.py @@ -102,6 +102,7 @@ class StarBot(commands.Bot): def __init__(self, state: StarState) -> None: super().__init__( command_prefix="⭐", + strip_after_prefix=True, intents=discord.Intents(message_content=True, guild_messages=True, guild_reactions=True, guilds=True), ) self.starstate: StarState = state