#pragma warning restore 414

    IEnumerator ProcessTwitchCommand(string command)
    {
        string[] parameters = command.Split(' ');
        if (Regex.IsMatch(command, @"^\s*submit\s*$", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant))
        {
            yield return(null);

            Submit.OnInteract();
        }

        else if (Regex.IsMatch(command, @"^\s*reset\s*$", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant))
        {
            yield return(null);

            Reset.OnInteract();
        }

        else
        {
            yield return(null);

            if (parameters.Length != 6)
            {
                yield return("sendtochaterror Invalid parameter length. The command was not processed.");

                yield break;
            }

            for (int x = 0; x < parameters.Length; x++)
            {
                if (!parameters[x].EqualsAny(NoteTerms))
                {
                    yield return("sendtochaterror One or more key being submitted is not valid. The command was not processed.");

                    yield break;
                }
            }

            for (int x = 0; x < parameters.Length; x++)
            {
                Key[Array.IndexOf(NoteTerms, parameters[x])].OnInteract();
                yield return(new WaitForSecondsRealtime(0.5f));
            }
        }
    }