This commit is contained in:
binlab
2023-11-11 16:20:15 +00:00
parent 6115d76acc
commit 8fcbc985cd

12
main.py
View File

@@ -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}```")