e-a-h / That-Sky-Bot

That Sky [Bot] for thatgamecompany and #thatskygame
Creative Commons Attribution Share Alike 4.0 International
14 stars 3 forks source link

102 dropbox receipt #108

Closed cXyn-h closed 2 years ago

cXyn-h commented 2 years ago

New things:

Design: The handling of a new message in source channels is broken into three sections: deliver, delete and dm. Operations are separated out in this order to make the process clearer and to get the message out of the channel as quickly as possible. Sending receipts wasn't important to do before removing message. Message content needed for receipt is saved in bot memory as pages before deleting, and only the names of attachments are saved for receipt. Since the messages are delivered first before receipts sent, the update on receipt status on the delivered message needs to be edited in.

Works better with issue #107 resolved. If not resolved, then receipts for dropbox messages with just an image will look a bit weird. The message will not have content and pagination returns one page that is empty. Receipt will try to put that in a code block but since content ins empty, it shows up as six backticks.