Segundo intento
This commit is contained in:
4
main.py
4
main.py
@@ -32,7 +32,7 @@ async def on_ready():
|
|||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_message(ctx, message):
|
async def on_message(message):
|
||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
if message.content.startswith(f'{PREFIX}{cmd[0]}'):
|
if message.content.startswith(f'{PREFIX}{cmd[0]}'):
|
||||||
await message.channel.send(random.choice(cmd[1]))
|
await message.channel.send(random.choice(cmd[1]))
|
||||||
@@ -42,7 +42,7 @@ async def on_message(ctx, message):
|
|||||||
await message.channel.send(make_help())
|
await message.channel.send(make_help())
|
||||||
|
|
||||||
if message.content.lower().endswith("murciano"):
|
if message.content.lower().endswith("murciano"):
|
||||||
await ctx.reply("Me la agarras con la mano", mention_author=True, ephemeral=True)
|
await message.author.reply("Me la agarras con la mano", mention_author=True, ephemeral=True)
|
||||||
|
|
||||||
|
|
||||||
@bot.command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!")
|
@bot.command(description=f"Añade una característica más de {os.environ['N1']} o {os.environ['N2']}!")
|
||||||
|
|||||||
Reference in New Issue
Block a user