Reason for checking for the presence of an attachment
When inspecting messages picked up in routes/feed.js I see messages like
{ type: 'message',
user: 'xxxxxx',
text: '<http://www.example.com/>',
ts: '1458219053.000004' }
Which are naturally not represented in the feed because they don't pass through the next check:
response.messages[i].attachments && response.messages[i].subtype != "bot_message"
I understand the rationale for the "bot_message" subtype being filtered out, but I don't get why the feed only seems to target messages which have attachments of links (how does that happen in the first place Slack-wise?)
Is this my misunderstanding, or did something happen to the api in the meantime?
I will commence work on making your application pick up any url present in plaintext of the users' messages, unless you say that's a dead end.
Thanks for sharing this, it already helped us a long way!