Update code naar 2.0 versie van discordpy #17

Merged
jp merged 6 commits from 2.0-update into master 2022-11-02 22:25:26 +01:00
Showing only changes of commit fe638f5877 - Show all commits
+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()