Skip to content

Commit

Permalink
you always do this
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed Apr 23, 2024
1 parent baaa115 commit 75307bd
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(",", "")
Expand All @@ -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:
Expand All @@ -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"))

0 comments on commit 75307bd

Please sign in to comment.