Update Horario.py
This commit is contained in:
19
Horario.py
19
Horario.py
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user