Last active
June 29, 2016 02:26
-
-
Save glennblock/8bab71fb01ddd26e09127aba2d41d02a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SlackAPI; | |
var client = new SlackSocketClient("[SLACK_TOKEN]"); | |
client.Connect((connected) =>{}, () =>{ | |
Console.WriteLine("Connected"); | |
client.PostMessage( | |
resp => { | |
Console.WriteLine("Posted"); | |
}, | |
"[CHANNEL]", | |
"Hello Slack from scriptcs" | |
); | |
}); | |
Console.ReadLine(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before running this, do "scriptcs install slackapi". Replace [SLACK_TOKEN] with your API token and replace [channel] with the channel you want to post to.