Update main.py
This commit is contained in:
9
main.py
9
main.py
@@ -5,7 +5,6 @@ import os
|
|||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
|
|
||||||
#from Horario import horario
|
|
||||||
|
|
||||||
intents = discord.Intents.all()
|
intents = discord.Intents.all()
|
||||||
# intents.members = True
|
# intents.members = True
|
||||||
@@ -121,12 +120,14 @@ async def mensaje_jueves():
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@tasks.loop(seconds = 5.0) # lee esta parte y piensa por qué no funciona
|
@tasks.loop(seconds = 5.0)
|
||||||
async def horario():
|
async def horario():
|
||||||
try:
|
try:
|
||||||
user = client.get_user(670695670486794260)
|
user = client.get_user(670695670486794260)
|
||||||
if time.localtime().tm_wday == 5:
|
if time.localtime().tm_wday == 5:
|
||||||
await user.send("prueba")
|
await user.send("prueba")
|
||||||
|
except Exception as e:
|
||||||
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user