From df6440ea3c96298e0218e301e6a7bc49cc032e1a Mon Sep 17 00:00:00 2001 From: binlab Date: Sun, 5 Nov 2023 17:18:23 +0000 Subject: [PATCH] Update main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 3c134a5..cb12481 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ import discord +from discord.ext import commands import os import random import time @@ -7,7 +8,7 @@ import time intents = discord.Intents.all() intents.members = True -bot = discord.ext.commands.Bot(intents=intents) +bot = commands.Bot(intents=intents) NL = "\n" PREFIX = "f!" @@ -31,7 +32,6 @@ async def on_ready(): @bot.event async def on_message(message): - ctx = await bot.get_context(message) for cmd in cmds: if message.content.startswith(f'{PREFIX}{cmd[0]}'): await message.channel.send(random.choice(cmd[1])) @@ -41,7 +41,7 @@ async def on_message(message): await message.channel.send(make_help()) if message.content.lower().endswith("murciano"): - + ctx = await bot.get_context(message) await ctx.reply("Me la agarras con la mano", ephemeral=True, mention_author=True) @bot.command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!")