diff --git a/main.py b/main.py index 2d1c0c0..abb8e59 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ import os import random import time from datetime import datetime +import asyncio intents = discord.Intents.all() # intents.members = True @@ -113,6 +114,21 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'], +async def mensaje_jueves(): + channel = client.get_channel(1051497546708697120) + await channel.send("prueba") + + +async def send_message_on_thursday(): + while True: + current_date = datetime.datetime.now() + if current_date.weekday() == 3: + if current_date.hour == 20 and current_date.minute == 17: + await send_message() + await asyncio.sleep(60) + + + async def rima(ctx, message): try: if message.content.lower().endswith("murciano") and message.author != bot.user: