コード例 #1
0
        private void HandleCommand(string cmdText, string args, ChatMessage chatMessage)
        {
            ChatCommand command = FindCommand(cmdText);

            if (command != null)
            {
                command.Execute(hub, chatMessage, cmdText, args);
                return;
            }
        }
コード例 #2
0
        private void HandleCommand(string cmdText, string args, ChatMessage chatMessage)
        {
            ChatCommand command = FindCommand(cmdText);

            if (command != null)
            {
                // TODO: Add shows watched - allViewers.GetUserLevel(chatMessage)
                command.Execute(hub, chatMessage, cmdText, args, 0);
                return;
            }
        }
コード例 #3
0
        private void HandleCommand(string cmdText, string args, ChatMessage chatMessage)
        {
            ChatCommand command = FindCommand(cmdText);

            if (command == null)
            {
                return;
            }

            if (command.Command == "reload")
            {
                chatCommands = GoogleSheets.Get <ChatCommand>();
                return;
            }

            // TODO: Add shows watched - allViewers.GetUserLevel(chatMessage)
            command.Execute(hub, chatMessage, cmdText, args, 0);
            return;
        }