Update Horario.py

This commit is contained in:
Mike2.0
2023-11-11 17:04:15 +00:00
parent fcacefba75
commit 3500e33fba

View File

@@ -1,9 +1,18 @@
import time import time
@tasks.loop(hours = 24.0) #días = {
async def mensaje_jueves(): #0: 'Lunes'
#1: 'Martes'
#2: 'Miércoles'
#3: 'Jueves'
#4: 'Viernes'
#}
@tasks.loop(seconds = 5.0)
async def horario():
try: try:
channel = bot.get_channel() user = client.get_user(670695670486794260)
if time.localtime().tm_wday == 3: if time.localtime().tm_wday == 5:
await channel.send("Buenos días, hoy es ") await user.send("prueba")