Skip to content

Commit 6845b09

Browse files
Have bot ignore text messages with empty list command_prefix (#8)
1 parent 55cbba3 commit 6845b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
intents.message_content = True
2424
intents.guilds = True
2525

26-
bot = commands.Bot(command_prefix=None, intents=intents, command_tree_cls=app_commands.CommandTree)
26+
bot = commands.Bot(command_prefix=lambda bot, message: [], intents=intents, command_tree_cls=app_commands.CommandTree)
2727

2828
if not DISCORD_BOT_TOKEN:
2929
logger.error("DISCORD_BOT_TOKEN is not set in the environment variables")

0 commit comments

Comments
 (0)