AsciiArt.AsciiArt.HandleLine C# (CSharp) Method

HandleLine() public method

Accepts the NewLine event of the Kiwana class.
public HandleLine ( List ex, string recipient, string command, bool userAuthorized, bool console ) : void
ex List The line from the server, split at spaces.
recipient string The channel or user the message came from. Empty when from console.
command string The normalized command. Empty if there's no command.
userAuthorized bool Whether the user sending the command is authorized. False if there's no command.
console bool Whether the line came from the console.
return void
        public override void HandleLine(List<string> ex, string recipient, string command, bool userAuthorized, bool console)
        {
            if (userAuthorized)
            {
                switch (command)
                {
                    case "doge":
                        _sendArt(recipient, _doge);
                        break;
                    case "lol":
                        _sendArt(recipient, _lol);
                        break;
                    case "troll":
                        _sendArt(recipient, _troll);
                        break;
                    case "trollgirl":
                        _sendArt(recipient, _trollGirl);
                        break;
                    case "bitchplease":
                        _sendArt(recipient, _bitchPlease);
                        break;
                    case "megusta":
                        _sendArt(recipient, _meGusta);
                        break;
                    case "notbad":
                        _sendArt(recipient, _notBad);
                        break;
                    case "youdon'tsay":
                        _sendArt(recipient, _youDontSay);
                        break;
                    case "areyoufuckingkiddingme":
                        _sendArt(recipient, _areYouFuckingKiddingMe);
                        break;
                    case "newspaperguy":
                        _sendArt(recipient, _newspaperGuy);
                        break;
                    case "ohgodwhy":
                        _sendArt(recipient, _ohGodWhy);
                        break;
                    case "iknowthatfeelbro":
                        _sendArt(recipient, _iKnowThatFeelBro);
                        break;
                    case "nothingtodohere":
                        _sendArt(recipient, _nothingToDoHere);
                        break;
                    case "nyancat":
                        _sendArt(recipient, _nyanCat);
                        break;
                    case "objection":
                        _sendArt(recipient, _objection);
                        break;
                }
            }
        }