public static void main(String[] args) {
		if (System.console() == null) {
			System.err.println("Error: Not connected to compatible console");
			System.exit(1);
		}
		File rc = new File(System.getProperty("user.home"), ".acmbotrc");
		boolean firstTime = !rc.exists();
		SmartBot bot = new SmartBot(rc.getAbsolutePath(),
			new Module[]{
				new DiceModule(),
				new SarcasmModule(),
				new CatfactsModule(),
				new GreetModule(),
				new DateTimeModule(),
				new GamblerModule()
		});
		if (firstTime) {
			firstTimeSetup(bot);
		}
		String extraMsg = "";
		for (String s : args) {
			if (!parseOption(s, bot)) {
				extraMsg = s;
			}
		}
		bot.setStartupMessage(extraMsg);
		bot.enableModulesFromSettings();
		bot.setVerbose(true);
		try {
			boolean connected = false;
			while (!connected) {
				try {
					bot.connect();
					connected = true;
				} catch (ConnectException e) {
					
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}