diff --git a/main.py b/main.py index d5ba017..f26c083 100644 --- a/main.py +++ b/main.py @@ -109,11 +109,13 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], @tasks.loop(hours = 24.0) async def mensaje_jueves(): - channel = bot.get_channel(782191552247234632) - if time.localtime().tm_wday == 5: - await channel.send("<@688355617681047574> FELIZ JUEVES!!!! (esto es una prueba)") - await channel.send(random.choices(["https://media.tenor.com/riA830QHvC8AAAAC/feliz-jueves-asuka.gif","https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif"], k=1, weights=[9,1])[0]) - + try: + channel = bot.get_channel(782191552247234632) + if time.localtime().tm_wday == 3: + await channel.send("<@688355617681047574> FELIZ JUEVES!!!! (esto es una prueba)") + await channel.send(random.choices(["https://media.tenor.com/riA830QHvC8AAAAC/feliz-jueves-asuka.gif","https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif"], k=1, weights=[9,1])[0]) + except Exception as e: + await send_log(f"rip. Error: ```{e}```")