mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 01:45:32 +00:00
Fix privileged intents
This commit is contained in:
parent
d905db5666
commit
165ce2f442
12
Robocop.py
12
Robocop.py
|
@ -46,7 +46,11 @@ wanted_jsons = [
|
||||||
"data/invites.json",
|
"data/invites.json",
|
||||||
]
|
]
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix=get_prefix, description=config.bot_description)
|
intents = discord.Intents.default()
|
||||||
|
intents.typing = False
|
||||||
|
intents.members = True
|
||||||
|
|
||||||
|
bot = commands.Bot(command_prefix=get_prefix, description=config.bot_description, intents=intents)
|
||||||
bot.help_command = commands.DefaultHelpCommand(dm_help=True)
|
bot.help_command = commands.DefaultHelpCommand(dm_help=True)
|
||||||
|
|
||||||
bot.log = log
|
bot.log = log
|
||||||
|
@ -226,8 +230,4 @@ for wanted_json in wanted_jsons:
|
||||||
with open(wanted_json, "w") as f:
|
with open(wanted_json, "w") as f:
|
||||||
f.write("{}")
|
f.write("{}")
|
||||||
|
|
||||||
intents = discord.Intents.default()
|
bot.run(config.token, bot=True, reconnect=True)
|
||||||
intents.typing = False
|
|
||||||
intents.members = True
|
|
||||||
|
|
||||||
bot.run(config.token, bot=True, reconnect=True, intents=intents)
|
|
||||||
|
|
Loading…
Reference in a new issue