message content intent

This commit is contained in:
xenofem 2022-10-29 15:53:29 -04:00
parent 12051f99a7
commit 5c026824d8

4
bot.py
View file

@ -5,7 +5,9 @@ import sys
SPOILER_REGEX = re.compile(r'spoil|\bcw\b', re.IGNORECASE)
client = discord.Client()
intents = discord.Intents.default()
intents.message_content = True
client = discord.Client(intents=intents)
def mentions_me(message):
return client.user in message.mentions or [client.user] in [role.members for role in message.role_mentions]