Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions DailyMessageBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -22,6 +22,7 @@
#--------Handles Events---------
@client.event
async def on_ready():
messageDaily.start()
print("Bot is ready.")


Expand Down Expand Up @@ -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)
client.run(TOKEN)