Update main.py
This commit is contained in:
9
main.py
9
main.py
@@ -107,16 +107,13 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
|
|||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def mensaje_jueves():
|
|
||||||
channel = bot.get_channel(1051497546708697120)
|
|
||||||
await channel.send("prueba")
|
|
||||||
|
|
||||||
async def mensaje_jueves():
|
async def mensaje_jueves():
|
||||||
while True:
|
while True:
|
||||||
current_date = datetime.datetime.now()
|
current_date = datetime.datetime.now()
|
||||||
if current_date.weekday() == 4:
|
if current_date.weekday() == 4:
|
||||||
if current_date.hour == 20 and current_date.minute == 29:
|
if current_date.hour == 20 and current_date.minute == 33 and current_date.second == 00:
|
||||||
await mensaje_jueves()
|
channel = bot.get_channel(1051497546708697120)
|
||||||
|
await channel.send("prueba")
|
||||||
await asyncio.sleep(10)
|
await asyncio.sleep(10)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user