From 75307bd98910a50528da6ab0157a51789ae4a545 Mon Sep 17 00:00:00 2001 From: artifishvr <59352535+artifishvr@users.noreply.github.com> Date: Mon, 22 Apr 2024 20:10:08 -0700 Subject: [PATCH] you always do this --- bot.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/bot.py b/bot.py index b11737a..593ab54 100644 --- a/bot.py +++ b/bot.py @@ -37,8 +37,8 @@ async def on_message(msg: discord.Message): if msg.author.bot: print("bot :(") return 0 - input = msg.content - input = ( + messagecontent = msg.content + messagecontent = ( input.casefold() .replace("'", "") .replace(",", "") @@ -65,7 +65,7 @@ async def on_message(msg: discord.Message): .split() ) # above code is so fucking great - for word in input: + for word in messagecontent: print(word) print(type(words)) if word.strip() in words: @@ -84,15 +84,5 @@ async def on_message(msg: discord.Message): break # :P -@tree.command(name="ping") -async def ping(interaction: discord.Interaction): - """ - deaf - """ - await interaction.response.send_message( - f"deaf\n\n{client.latency * 1000}ms :3", ephemeral=True - ) - - dotenv.load_dotenv() client.run(os.getenv("DISCORD_TOKEN"))