I have been making a discord bot game recently, and want there to be daily events that players can join and compete in. But I want these events to appear automatically, without the client doing anything. I've thought about using the cooldown()
function that discord offers and time.sleep()
. But how would the bot know where to send the message?
Here's a short part if what I've tried:
import discord
from discord.ext.commands import command, cooldown
@cooldown(1, 86400, '''What type should I use here?''')
async def '''what kind of function?'''():
await '''What should I use to send'''("@everyone, a new event has appeared! **INFO**...")