mensaje_jueves prueba 1

This commit is contained in:
binlab
2023-11-10 20:01:37 +00:00
parent 06e42f410a
commit 42940d62dc

12
main.py
View File

@@ -1,9 +1,9 @@
import discord
from discord.ext import commands
from discord.ext import tasks
import os
import random
import time
import datetime
intents = discord.Intents.all()
# intents.members = True
@@ -105,14 +105,10 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
@bot.event
@tasks.loop(seconds = 5.0)
async def mensaje_jueves():
while True:
current_date = datetime.datetime.now()
if current_date.weekday() == 4:
if current_date.hour == 19 and current_date.minute == 50 and current_date.second == 00:
channel = bot.get_channel(1051497546708697120)
await channel.send("prueba")
channel = bot.get_channel(1051497546708697120)
await channel.send("prueba")