mensaje_jueves prueba 1
This commit is contained in:
12
main.py
12
main.py
@@ -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")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user