disable embed
This commit is contained in:
4
main.py
4
main.py
@@ -75,7 +75,7 @@ async def on_message(message):
|
|||||||
|
|
||||||
for word in message.content.split():
|
for word in message.content.split():
|
||||||
if word.startswith(("http://", "https://")) and (cleaned := clean_url(word)):
|
if word.startswith(("http://", "https://")) and (cleaned := clean_url(word)):
|
||||||
await message.channel.send(f"Cleaned link: {cleaned}")
|
await message.channel.send(f"Cleaned link: <{cleaned}>")
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ async def bomb(interaction: discord.Interaction):
|
|||||||
if word.startswith(("http://", "https://")) and (
|
if word.startswith(("http://", "https://")) and (
|
||||||
cleaned := clean_url(word)
|
cleaned := clean_url(word)
|
||||||
):
|
):
|
||||||
await interaction.response.send_message(f"Cleaned link: {cleaned}")
|
await interaction.response.send_message(f"Cleaned link: <{cleaned}>")
|
||||||
return
|
return
|
||||||
await interaction.response.send_message("No links found.")
|
await interaction.response.send_message("No links found.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user