discord-echobot icon indicating copy to clipboard operation
discord-echobot copied to clipboard

Messages dropping that contain only an attached image

Open chefsas opened this issue 4 years ago • 3 comments

This line is appearing in my terminal output when a message contains no content other than an attached image. I've included screenshots of my config file (the section specific to this source) and the source message for reference. You can see in the log the very next message contained text and redirected normally. Rich embeds with attached images in other sources are working great. It's just when someone directly posts just an image in a message with no accompanying text that it seems to do this.

Thank you so much for this code. It's been a huge life saver for me to consolidate information from various sources and redirect them to individual channels on my own personal server for my own use. Being able to just go one place to get a ton of information is invaluable to me. Terminal Output Config File

chefsas avatar Jan 04 '21 08:01 chefsas

Hiya! Thanks for the report! I think you are right, I might have messed this up in the last release. I probably can't get to this until the weekend but I'll try to solve it quickly :)

MitchTalmadge avatar Jan 06 '21 18:01 MitchTalmadge

I think I figured it out. When there's nothing but the image in the message, it doesn't seem to like it. I moved the code for the header and simplified it because I didn't like two messages for every message coming through. So now mine says "From: blahblah" then a new line and the rest of the message. Anyway, when I did that, I noticed the messages with only an image started coming through just fine.

chefsas avatar Feb 04 '21 10:02 chefsas

I think I figured it out. When there's nothing but the image in the message, it doesn't seem to like it. I moved the code for the header and simplified it because I didn't like two messages for every message coming through. So now mine says "From: blahblah" then a new line and the rest of the message. Anyway, when I did that, I noticed the messages with only an image started coming through just fine.

Could you share the changes you made here? I just ran into this and was excited to see an issue was already open and would love to see how you solved that. Also very interested in making the relay a single line reply

nihirisuto avatar Mar 02 '21 21:03 nihirisuto