public static void main(String[] args) {
		if (args.length < 3){
			System.out.println("Syntax: [nick] [server] [channel]");
			return;
		}
		IrcConsole c = new IrcConsole();
		for(String s:args){
			System.out.println(s);
		}
		String name= args[0];
		String server=args[1];
		String channel=args[2];
		
		MahjongBot b = new MahjongBot(server,6667,null,name,c,channel);
		boolean done=false;
		while(!done){
			try{
			b.connect(b.ServerName, b.ServerPort, b.ServerPassword);
			done=true;
			}
			catch(Exception e){}
		}
		done=false;
		while(!done){
			try{
				b.joinChannel(b.channel);
			done=true;
			}
			catch(Exception e){}
		}
		c.SetBot(b);
		c.mainLoop();
		
		
		
		
	}