juiste permissions/intents

This commit is contained in:
2022-10-25 20:06:41 +02:00
parent 336c3f7655
commit fe638f5877
+3 -1
View File
@@ -22,8 +22,10 @@ async def add_cogs(bot):
await bot.add_cog(Chatbot.Chatbot(bot)) await bot.add_cog(Chatbot.Chatbot(bot))
await bot.add_cog(Points.Points(bot)) await bot.add_cog(Points.Points(bot))
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True, intents=discord.Intents.default()) bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True, intents=intents)
#Read configuration file: #Read configuration file:
config = configparser.ConfigParser() config = configparser.ConfigParser()