Update main.py
This commit is contained in:
22
main.py
22
main.py
@@ -3,8 +3,8 @@ from discord.ext import commands
|
|||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
import schedule
|
#import schedule
|
||||||
import asyncio
|
#import asyncio
|
||||||
|
|
||||||
intents = discord.Intents.all()
|
intents = discord.Intents.all()
|
||||||
# intents.members = True
|
# intents.members = True
|
||||||
@@ -106,17 +106,17 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
#@bot.event
|
||||||
async def jueves():
|
# async def jueves():
|
||||||
channel = client.get_channel(1051497546708697120)
|
# channel = client.get_channel(1051497546708697120)
|
||||||
|
|
||||||
await channel.send("prueba")
|
# await channel.send("prueba")
|
||||||
|
|
||||||
async def cronómetro():
|
#async def cronómetro():
|
||||||
schedule.every().friday.at("19:22").do(asyncio.run, send_message)
|
#schedule.every().friday.at("19:22").do(asyncio.run, send_message)
|
||||||
while True:
|
# while True:
|
||||||
schedule.run_pending()
|
# schedule.run_pending()
|
||||||
asyncio.sleep(1)
|
# asyncio.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user