From 3aa0672cf96eecd727c42109811b78bb2512f7e8 Mon Sep 17 00:00:00 2001 From: lizardgai4 <70610229+lizardgai4@users.noreply.github.com> Date: Sun, 10 Aug 2025 15:25:22 -0700 Subject: [PATCH] Made it work with the modern libraries --- DailyMessageBot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DailyMessageBot.py b/DailyMessageBot.py index 21a872d..30c8581 100644 --- a/DailyMessageBot.py +++ b/DailyMessageBot.py @@ -10,9 +10,9 @@ TOKEN = configFile['token'] tasks = configFile['tasks'] #connect to discord -client = discord.Client() +client = discord.Client(intents=discord.Intents.default()) #set command prefix -client = commands.Bot(command_prefix='dmb ') +client = commands.Bot(intents=discord.Intents.default(), command_prefix='dmb ') #users that will receive messages users = [] numTasks = 2 @@ -22,6 +22,7 @@ #--------Handles Events--------- @client.event async def on_ready(): + messageDaily.start() print("Bot is ready.") @@ -311,7 +312,5 @@ async def messageDaily(): #TODO: save to config file #TODO: better help function - -messageDaily.start() #run bot using token -client.run(TOKEN) \ No newline at end of file +client.run(TOKEN)