From 165ce2f4429500e733870906a65bfa9a6622b4cd Mon Sep 17 00:00:00 2001 From: Ave Date: Thu, 1 Oct 2020 22:07:50 +0300 Subject: [PATCH] Fix privileged intents --- Robocop.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Robocop.py b/Robocop.py index a21972d..800e8d6 100755 --- a/Robocop.py +++ b/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)