Ejemplo n.º 1
0
        public static void handleCommand(TwitchLib.TwitchChatClient.OnCommandReceivedArgs e)
        {
            if (verifyCommand(e))
            {
                if (WebCalls.createHighlight(e.ChatMessage.Username, e.ArgumentsAsString).Result)
                {
                    Common.ChatClient.SendMessage(string.Format("Created a highlight marker by '{0}' titled '{1}'! You can view bookmarked highlights here: https://burkeblack.tv/highlights.php", e.ChatMessage.Username, e.ArgumentsAsString), Common.DryRun);
                }
                else
                {
                    Common.ChatClient.SendMessage("Highlight was not created.  Please make sure Burke is online before creating a highlight.");
                }

                Common.command(e.Command, true);
            }
            else
            {
                Common.command(e.Command, false);
            }
        }