A simple slackbot library built to listen for and respond to messages.
Install-Package Slackbot
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!");
}
};
https://github.com/mattcbaker/dotnetcore-slackbot/blob/master/RELEASE-NOTES.md
https://www.nuget.org/packages/Slackbot
This code is provided under the MIT license