Пример #1
0
        private static string CookCommand(SlackCommand command)
        {
            dynamic responseJson = null;
            var     slackClient  = new SlackClient();

            responseJson = command.Text.StartsWith("order", ignoreCase: true, culture: CultureInfo.CurrentCulture) ?
                           slackClient.PostMenu() :
                           slackClient.SendPostMessage(command);
            return(responseJson);
        }