try to fix intents
This commit is contained in:
parent
7d9ca51b4f
commit
070bf5d069
1 changed files with 3 additions and 5 deletions
8
bot.py
8
bot.py
|
@ -19,11 +19,9 @@ def right(s, amount):
|
||||||
def mid(s, offset, amount):
|
def mid(s, offset, amount):
|
||||||
return s[offset:offset+amount]
|
return s[offset:offset+amount]
|
||||||
|
|
||||||
intents = discord.Intents(
|
intents = discord.Intents.default()
|
||||||
guilds=True,
|
intents.members = True
|
||||||
members=True,
|
intents.message_content = True
|
||||||
messages=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
token = os.environ['TOKEN']
|
token = os.environ['TOKEN']
|
||||||
prefix = os.environ['PREFIX']
|
prefix = os.environ['PREFIX']
|
||||||
|
|
Loading…
Reference in a new issue