A simple to use connector/client for the Slack API in C#
Clone or download
Workshop2 Merge pull request #79 from noobot/file-to-files-fix
Update to resolve File attachment issues since slack changes their API
Latest commit 6517f77 Jul 29, 2018

README.md

SlackConnector

Build status Test status Nuget.org

SlackConnector is a C# client to initiate and manage an open connection between you and the Slack servers. SlackConnector uses web-sockets to allow real-time messages to be received and handled within your application.

History

This library was originally extracted MargieBot and has iterated on it's own to become testable and progress without being coupled to any one implementation. This library has been built for noobot, however it can easily be used in any project due to it's decoupling.

Installation

Install-Package SlackConnector

Usage

ISlackConnector connector = new SlackConnector.SlackConnector();
ISlackConnection connection = await connector.Connect(botAccessToken);
connection.OnMessageReceived += MessageReceived;
connection.OnDisconnect += Disconnected;

Features

  • Async by default
  • Easy setup
  • Real-time communication
  • Unit tested