Skip to content

A .NET library to enable you to send bot messages in slack

License

Notifications You must be signed in to change notification settings

Lukejkw/SlackBotMessages

 
 

Repository files navigation

SlackBotMessages Logo

SlackBotMessages

A .NET library to enable you to send bot messages in slack, by posting messages to Slack's incoming WebHook Urls

NuGet

Install via NuGet: Install-Package SlackBotMessages

Or click here to go to the NuGet package landing page

Registering for your WebHook Url with Slack

[Click here to set up an incoming WebHook] (https://my.slack.com/services/new/incoming-webhook/)

  • Sign in to Slack
  • Choose a channel to post to
  • Then click on the green button Add Incoming WebHooks integration
  • You will be given a WebHook Url. Keep this private. Use it when you set up the SBMClient. See example below.
// Usage example
// This will send a message to the slack channel with the message, username and emoji of your choice 

using SlackBotMessages;

SBMClient client = new SBMClient("https://hooks.slack.com/services/Your/WebHook/Url");
Message msg = new Message("Hello World", "general", "codeshare.co.uk",":poop:");
client.Send(msg);

About

A .NET library to enable you to send bot messages in slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%