Update main.py
This commit is contained in:
16
main.py
16
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:
|
||||
|
||||
Reference in New Issue
Block a user