Update main.py
This commit is contained in:
8
main.py
8
main.py
@@ -119,13 +119,13 @@ async def mensaje_jueves():
|
||||
await channel.send("prueba")
|
||||
|
||||
|
||||
async def send_message_on_thursday():
|
||||
async def cronómetro():
|
||||
while True:
|
||||
current_date = datetime.datetime.now()
|
||||
if current_date.weekday() == 4:
|
||||
if current_date.hour == 20 and current_date.minute == 20:
|
||||
await send_message()
|
||||
await asyncio.sleep(60)
|
||||
if current_date.hour == 20 and current_date.minute == 24:
|
||||
await mensaje_jueves()
|
||||
await asyncio.sleep(20)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user