try to fix intents

This commit is contained in:
Aaron Riedel 2022-03-07 03:15:01 +01:00
parent 7d9ca51b4f
commit 070bf5d069
Signed by: aaron
GPG key ID: 643004654D40D577

8
bot.py
View file

@ -19,11 +19,9 @@ def right(s, amount):
def mid(s, offset, amount):
return s[offset:offset+amount]
intents = discord.Intents(
guilds=True,
members=True,
messages=True,
)
intents = discord.Intents.default()
intents.members = True
intents.message_content = True
token = os.environ['TOKEN']
prefix = os.environ['PREFIX']