From 9a6a9a8a77c64ba413c3f912e38bfa39f1b07d44 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 16 Dec 2022 15:43:08 +0100 Subject: [PATCH] Added the roght intents --- code/code.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/code.py b/code/code.py index 3a20b39..e50be13 100644 --- a/code/code.py +++ b/code/code.py @@ -9,13 +9,12 @@ from config import debug, conn, c # import the debug function and the database c #add the message content intent to the bot, aka discord.Intents.default() and discord.Intents.message_content intents = discord.Intents.default() intents.message_content = True -bot = discord.Bot(intents=intents, help_command=None) # create the bot - +intents.members = True import apsw # pip install apsw. ApSW is a Python interface to SQLite 3 -intents = discord.Intents.default() -intents.message_content = True -intents.members = True + +# set the intents to 3276543 +print(intents) bot = discord.Bot(intents=intents, help_command=None) # create the bot bot.add_cog(cogs.Setup(bot)) bot.add_cog(cogs.Settings(bot))