ya vale con lo de la evau
This commit is contained in:
14
main.py
14
main.py
@@ -33,7 +33,6 @@ async def on_ready():
|
|||||||
await send_log(f"hora de inicio: {time.ctime(time.time())}")
|
await send_log(f"hora de inicio: {time.ctime(time.time())}")
|
||||||
mensaje_jueves.start()
|
mensaje_jueves.start()
|
||||||
# horario_enviar.start()
|
# horario_enviar.start()
|
||||||
mandar_ebau.start()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -153,19 +152,6 @@ async def mensaje_jueves():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
@tasks.loop(hours = 1)
|
|
||||||
async def mandar_ebau():
|
|
||||||
try:
|
|
||||||
if time.localtime().tm_hour != 6: return
|
|
||||||
channel = bot.get_channel(782191552247234632)
|
|
||||||
c2 = bot.get_channel(1153800096761262152)
|
|
||||||
# await c2.send(time.localtime().tm_hour + 1)
|
|
||||||
# await c2.send(time.localtime().tm_wday + 1) debug por si pasa algo
|
|
||||||
|
|
||||||
await channel.send("@everyone buena suerte en la EVAU. https://www.youtube.com/watch?v=o-dv7xNxAEk", allowed_mentions = allowed_mentions)
|
|
||||||
except Exception as e:
|
|
||||||
await send_log(f"rip. Error: ```{e}```")
|
|
||||||
|
|
||||||
@tasks.loop(hours = 1)
|
@tasks.loop(hours = 1)
|
||||||
async def horario_enviar():
|
async def horario_enviar():
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user