mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 02:05:36 +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",
|
||||
]
|
||||
|
||||
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.log = log
|
||||
|
@ -226,8 +230,4 @@ for wanted_json in wanted_jsons:
|
|||
with open(wanted_json, "w") as f:
|
||||
f.write("{}")
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.typing = False
|
||||
intents.members = True
|
||||
|
||||
bot.run(config.token, bot=True, reconnect=True, intents=intents)
|
||||
bot.run(config.token, bot=True, reconnect=True)
|
||||
|
|
Loading…
Reference in a new issue