static void Main(string[] args) { // If you wish to use the SlackApp feature (such as interactive buttons...) // please remove comments below lines. /* * var url = SlackAPI.SlackClient.GetAuthorizeUri( * "41105373671.102273797813", * SlackScope.Post | SlackScope.Client | SlackScope.Read); * System.Diagnostics.Process.Start(url.ToString()); * * var code = Console.ReadLine(); * SlackAPI.SlackClient.GetAccessToken( * (response) => * { * Console.WriteLine(response.error); * Console.WriteLine(response.access_token); * }, * "41105373671.102273797813", * "c10342c1f35f75a3cf3ca087f5547c43", * "https://Functionsa0f1f77a.azurewebsites.net/api/HttpTriggerCSharp1?code=8d94a123103adc9f62f1a38bd18dccc8b19e58f8", * code); */ SlackBot.Configuration = new SlackBotConfiguration() { AuthToken = "YOUR TOKEN GOES HERE" }; SlackBot.Run(); while (true) { Console.ReadLine(); } }
static void Main(string[] args) { Console.WriteLine("HELLO WORLD"); SlackBot.Configuration = new SlackBotConfiguration() { AuthToken = "xoxp-41105373671-41469381379-42639991936-7ad9c24d95" }; SlackBot.Run(); Console.Read(); }