Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Adds support for uploading files to a Slack channel #31

Closed
wants to merge 3 commits into from

Conversation

metalbot
Copy link
Contributor

Modifies the ISlackConnection and IChatClient interfaces to support uploading a file to slack, using mechanisms very similar to the existing Say and PostMessage implementations.

Also allows you to set the channel for integration testing (was hard coded to #general).

Note that this also generalizes the configuration in the integration tests to choose what channel the bot is in for testing.
@Workshop2
Copy link
Member

Hello @metalbot - I haven't forgotten your pull request.

I want to extend this to use streams instead of using the file system before accepting it 😄

@metalbot
Copy link
Contributor Author

I don't mind doing that, but may not be able to get to it today.

@Workshop2
Copy link
Member

@AlexJH4U you should raise an issue - pull requests are for code changes.

@Workshop2
Copy link
Member

Also @metalbot - if you are able to make a new client for uploading instead of using the chat client that would be great 👍

@metalbot
Copy link
Contributor Author

metalbot commented Jan 6, 2017

I've got this done, and should be able to push tomorrow. If I update the conflict on my pull request to match, will that resolve the merge conflict?

@Workshop2
Copy link
Member

Yes, I believe it should fix it

@metalbot
Copy link
Contributor Author

metalbot commented Jan 6, 2017

Closing and resubmitting

@metalbot metalbot closed this Jan 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants