se viene
This commit is contained in:
5
main.py
5
main.py
@@ -111,12 +111,13 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
|
||||
@tasks.loop(hours = 1)
|
||||
async def mensaje_jueves():
|
||||
try:
|
||||
if 0 <= time.localtime().tm_hour + 1 < 1: return
|
||||
if time.localtime().tm_hour + 1 != 24: 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)
|
||||
|
||||
if time.localtime().tm_wday == 3:
|
||||
if time.localtime().tm_wday + 1 == 3:
|
||||
await channel.send("<@688355617681047574> FELIZ JUEVES!!!!")
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user