Skip to content

matt-github-acct/dotnetcore-slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.Net Core Slackbot Library

A simple slackbot library built to listen for and respond to messages.

Install

Install-Package Slackbot

Usage

var bot = new Bot("bot-token", "bot-username");

bot.OnMessage += (sender, message) =>
{
    if (message.MentionedUsers.Any(user => user == "bot-username"))
    {
        bot.SendMessage(message.Channel, $"Hi {message.User}, thanks for mentioning my name!");
    }
};

Release Notes

https://github.com/mattcbaker/dotnetcore-slackbot/blob/master/RELEASE-NOTES.md

Nuget

https://www.nuget.org/packages/Slackbot

License

This code is provided under the MIT license

About

.Net Core Slackbot Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages