geirawsm / sausage_bot

Another Discord-bot
1 stars 0 forks source link

Better quote handling with images #69

Open geirawsm opened 1 month ago

geirawsm commented 1 month ago

Two parts:

  1. Add a field that receives links to messages or message IDs, separated by comma. When adding quotes, it will get the text and compile it to a text field.
  2. Add function to save images in a message as a blob in sqlite.
geirawsm commented 1 month ago

Saving image as a blob: https://pynative.com/python-sqlite-blob-insert-and-retrieve-digital-data/

Also, assess if it is more worthwhile to save images in a separate folder with paths instead.