Update main.py
This commit is contained in:
20
main.py
20
main.py
@@ -3,7 +3,8 @@ from discord.ext import commands
|
|||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
|
import schedule
|
||||||
|
import asyncio
|
||||||
|
|
||||||
intents = discord.Intents.all()
|
intents = discord.Intents.all()
|
||||||
# intents.members = True
|
# intents.members = True
|
||||||
@@ -103,6 +104,23 @@ async def delete(ctx, attr: str, user: discord.Option(choices=[os.environ['N1'],
|
|||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@bot.event
|
||||||
|
async def jueves():
|
||||||
|
channel = client.get_channel(1051497546708697120)
|
||||||
|
|
||||||
|
await channel.send("prueba")
|
||||||
|
|
||||||
|
async def cronómetro():
|
||||||
|
schedule.every().friday.at("19:22").do(asyncio.run, send_message)
|
||||||
|
while True:
|
||||||
|
schedule.run_pending()
|
||||||
|
asyncio.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def rima(ctx, message):
|
async def rima(ctx, message):
|
||||||
try:
|
try:
|
||||||
if message.content.lower().endswith("murciano") and message.author != bot.user:
|
if message.content.lower().endswith("murciano") and message.author != bot.user:
|
||||||
|
|||||||
Reference in New Issue
Block a user