コード例 #1
0
		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
			}
		}
コード例 #2
0
		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( );
		}
コード例 #3
0
		public void Execute( AIrcMessage message ) {
			message.Respond( "Hello " + message.Sender );
		}
コード例 #4
0
		public void Execute( AIrcMessage message ) {
			message.Respond( "/Names" );
		}