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