diff --git a/code/code.py b/code/code.py index 6b3a474..d3747aa 100644 --- a/code/code.py +++ b/code/code.py @@ -5,8 +5,9 @@ import asyncio # pip install asyncio import cogs # import the cogs import datetime # pip install datetime from config import debug, conn, c # import the debug function and the database connection -bot = discord.Bot(intents=discord.Intents.all(), help_command=None) - +intents = discord.Intents.default() +intents.message_content = True +bot = discord.Bot(intents=intents, help_command=None) # create the bot bot.add_cog(cogs.Setup(bot)) bot.add_cog(cogs.Settings(bot)) bot.add_cog(cogs.Help(bot)) @@ -41,4 +42,4 @@ bot.loop.create_task(check_day_task()) with open("./key.txt") as f: key = f.read() -bot.run(key) \ No newline at end of file +bot.run(key)