From 1b5caee04e97b411c9bb3752b3cf52df9ac70772 Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 6 Dec 2022 12:18:33 +0100 Subject: [PATCH] Update code.py --- code/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/code.py b/code/code.py index c243ef9..e8e3e73 100644 --- a/code/code.py +++ b/code/code.py @@ -250,7 +250,7 @@ async def advanced_help(ctx): #when someone mentions the bot, check if the guild is in the database and if the bot is enabled. If it is, send a message answering the mention @bot.command(name="pretend", description="Make the bot pretend to be someone else") @discord.commands.option(name="pretend to be...", description="The person/thing you want the bot to pretend to be", required=True) -async def pretend(ctx, pretend_to_be: str, message: str): +async def pretend(ctx, pretend_to_be: str): debug(f"The user {ctx.author} ran the pretend command in the channel {ctx.channel} of the guild {ctx.guild}, named {ctx.guild.name}") #check if the guild is in the database c.execute("SELECT * FROM data WHERE guild_id = ?", (ctx.guild.id,)) @@ -263,7 +263,7 @@ async def pretend(ctx, pretend_to_be: str, message: str): await ctx.respond("The bot is disabled", ephemeral=True) return #enable pretend if it is not enabled, and disable it if it is - if c.fetchone()[11] == 0: + if c.fetchone()[13] == 0: c.execute("UPDATE data SET pretend = 1 WHERE guild_id = ?", (ctx.guild.id,)) conn.commit() await ctx.respond("Pretend mode enabled", ephemeral=True)