Update main.py

This commit is contained in:
Mike2.0
2023-11-10 19:16:45 +00:00
parent ad565ddeba
commit 6e685aa39c

16
main.py
View File

@@ -4,6 +4,7 @@ import os
import random import random
import time import time
from datetime import datetime from datetime import datetime
import asyncio
intents = discord.Intents.all() intents = discord.Intents.all()
# intents.members = True # 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): async def rima(ctx, message):
try: try:
if message.content.lower().endswith("murciano") and message.author != bot.user: if message.content.lower().endswith("murciano") and message.author != bot.user: