mensaje_jueves prueba 1

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

View File

@@ -1,9 +1,9 @@
import discord import discord
from discord.ext import commands from discord.ext import commands
from discord.ext import tasks
import os import os
import random import random
import time import time
import datetime
intents = discord.Intents.all() intents = discord.Intents.all()
# intents.members = True # intents.members = True
@@ -105,12 +105,8 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
@bot.event @tasks.loop(seconds = 5.0)
async def mensaje_jueves(): 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) channel = bot.get_channel(1051497546708697120)
await channel.send("prueba") await channel.send("prueba")