From 2a7a1e239a65cf333ba2204d5578ede19b411ceb Mon Sep 17 00:00:00 2001 From: DragonSenseiGuy <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Sat, 1 Nov 2025 16:44:46 -0400 Subject: [PATCH 1/6] change bot's response to remove a paste --- bot/exts/utils/attachment_pastebin_uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index 1ea74b5090..4f309cf275 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -128,7 +128,7 @@ async def on_message(self, message: discord.Message) -> None: # Send the user a DM with the delete link for the paste. # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste - await message.author.send(content=f"[Click here](<{paste_response.removal}>) to delete your recent paste.") + await message.author.send(content=f"[Click here](<{paste_response.removal}>) to delete the pasted code from [your message](<{message.jump_url}>)") # Edit the bot message to contain the link to the paste. await bot_reply.edit(content=f"[Click here]({paste_response.link}) to see this code in our pastebin.") From 1467e74910e74e57ca307c7b4cb4f12341675a03 Mon Sep 17 00:00:00 2001 From: DragonSenseiGuy <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Sat, 1 Nov 2025 16:53:18 -0400 Subject: [PATCH 2/6] fix linting --- bot/exts/utils/attachment_pastebin_uploader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index 4f309cf275..2ad54d27bb 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -128,7 +128,8 @@ async def on_message(self, message: discord.Message) -> None: # Send the user a DM with the delete link for the paste. # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste - await message.author.send(content=f"[Click here](<{paste_response.removal}>) to delete the pasted code from [your message](<{message.jump_url}>)") + await message.author.send(content=f"""[Click here](<{paste_response.removal}>) to delete the pasted code + from [your message](<{message.jump_url}>)""") # Edit the bot message to contain the link to the paste. await bot_reply.edit(content=f"[Click here]({paste_response.link}) to see this code in our pastebin.") From f7c98bac876786b1cab3c5e5103d9ee1f2458de7 Mon Sep 17 00:00:00 2001 From: DragonSenseiGuy <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Sat, 1 Nov 2025 17:07:06 -0400 Subject: [PATCH 3/6] fix lint --- bot/exts/utils/attachment_pastebin_uploader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index 2ad54d27bb..640ffcb352 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -128,8 +128,9 @@ async def on_message(self, message: discord.Message) -> None: # Send the user a DM with the delete link for the paste. # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste - await message.author.send(content=f"""[Click here](<{paste_response.removal}>) to delete the pasted code - from [your message](<{message.jump_url}>)""") + await message.author.send(content=(f"[Click here](<{paste_response.removal}>) to delete the pasted code" + " from [your message](<{message.jump_url}>)") + ) # Edit the bot message to contain the link to the paste. await bot_reply.edit(content=f"[Click here]({paste_response.link}) to see this code in our pastebin.") From 2b7a71763c74027915d6d73b67770700ac1e62b7 Mon Sep 17 00:00:00 2001 From: DragonSenseiGuy <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Sat, 1 Nov 2025 18:31:01 -0400 Subject: [PATCH 4/6] fix f-strings --- bot/exts/utils/attachment_pastebin_uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index 640ffcb352..dbba631906 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -129,7 +129,7 @@ async def on_message(self, message: discord.Message) -> None: # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste await message.author.send(content=(f"[Click here](<{paste_response.removal}>) to delete the pasted code" - " from [your message](<{message.jump_url}>)") + f" from [your message](<{message.jump_url}>)") ) # Edit the bot message to contain the link to the paste. From 5bcb18a4b86f955f2d5e167eb595c78651b89b4e Mon Sep 17 00:00:00 2001 From: DragonSenseiGuy <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Sat, 1 Nov 2025 18:46:16 -0400 Subject: [PATCH 5/6] formatting and content changes --- bot/exts/utils/attachment_pastebin_uploader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index dbba631906..a1eb171039 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -128,8 +128,9 @@ async def on_message(self, message: discord.Message) -> None: # Send the user a DM with the delete link for the paste. # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste - await message.author.send(content=(f"[Click here](<{paste_response.removal}>) to delete the pasted code" - f" from [your message](<{message.jump_url}>)") + await message.author.send( + f"[Click here](<{paste_response.removal}>) to delete the pasted attachment" + f" contents copied from [your message](<{message.jump_url}>)" ) # Edit the bot message to contain the link to the paste. From 1c182749e9c80e45ace273d690e7400be581b962 Mon Sep 17 00:00:00 2001 From: DragonSenseiGuy <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Sat, 1 Nov 2025 18:50:13 -0400 Subject: [PATCH 6/6] fix indentation --- bot/exts/utils/attachment_pastebin_uploader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index a1eb171039..d39c03f10a 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -129,8 +129,8 @@ async def on_message(self, message: discord.Message) -> None: # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste await message.author.send( - f"[Click here](<{paste_response.removal}>) to delete the pasted attachment" - f" contents copied from [your message](<{message.jump_url}>)" + f"[Click here](<{paste_response.removal}>) to delete the pasted attachment" + f" contents copied from [your message](<{message.jump_url}>)" ) # Edit the bot message to contain the link to the paste.