ekmartin / slack-irc

Connects Slack and IRC channels by sending messages back and forth.
MIT License
588 stars 155 forks source link

Report file uploads to IRC #193

Closed Aketzu closed 7 years ago

Aketzu commented 7 years ago

This handles file_share message subtype which is sent when e.g. screenshot is pasted to Slack channel. It shows both Slack-internal link and public link. For the public link to work Slack config "Enable public file URL creation" must be enabled and file uploader must also click "Create external link" on the file.

Looks like this in IRC channel

20:58 < slack> <aketzu> File uploaded 
             https://team.slack.com/files/aketzu/F60UD9R2L/pasted_image_at_2017_04_18_08_57_pm.png / 
             https://slack-files.com/T0LK1LT6W-F60UD9R2L-8fb1c182e4 - comment here

Fixes #22

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-1.6%) to 97.861% when pulling 2d8ee521795147887ca83f09ad44d91b90c2a79d on Aketzu:master into 28dd48be331445c2b13ebd4345e7335cfc045496 on ekmartin:master.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.009%) to 99.465% when pulling 7440faf81df6ad161be24a42fc02d653f5d9f1e0 on Aketzu:master into 28dd48be331445c2b13ebd4345e7335cfc045496 on ekmartin:master.

ekmartin commented 7 years ago

Sorry about the slow response. This is now published in version 3.10.0 - thank you!