public void Execute( AIrcMessage message ) { string seperator = " || "; if ( message.RawMessageArr.Length <= 1 ) { foreach ( ICommand ic in commands ) { string response = ic.Alias + seperator + ic.HelpString; message.Respond( response ); } } else { //parse the command out of RawMessagArr } }
public void Execute( AIrcMessage message ) { //strip the Alias string convertMe = message.Message.Substring(Alias.Length + 1).ToLower(); string response = ""; foreach ( char c in convertMe ) { response += MorseLookupTable.LookupChar( c ) + " "; } message.Respond( response ); //Uncomment below to simulate a radio room circa 1900 //Thread morsePlayThread = new Thread(() => playMorse( response )); //morsePlayThread.Start( ); }
public void Execute( AIrcMessage message ) { message.Respond( "Hello " + message.Sender ); }
public void Execute( AIrcMessage message ) { message.Respond( "/Names" ); }