Skip to content

Commit

Permalink
Update message format and links
Browse files Browse the repository at this point in the history
- Add original message link to archive message
- Add original message link to notification
- Update message format for better readability
- Add better reaction cleanup
- Add better error context
- Add better task management
  • Loading branch information
pacnpal committed Nov 14, 2024
1 parent acef03b commit fdebc0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions videoarchiver/video_archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,12 @@ async def process_video_url(self, url: str, message: discord.Message) -> bool:
return False

try:
# Upload to archive channel
# Upload to archive channel with original message link
file = discord.File(file_path)
archive_message = await archive_channel.send(file=file)
archive_message = await archive_channel.send(
f"Original: {message.jump_url}",
file=file
)

# Send notification with information
notification_message = await notification_channel.send(
Expand Down

0 comments on commit fdebc0f

Please sign in to comment.