SephiaBot sephiaBot = new SephiaBot("sephiabot.cfg"); sephiaBot.connect();
if (args != null && args.length > 0) { for (int i = 0; i < args.length; i++) { System.out.println("Args["+i+"]="+args[i]); if (args[i].equals("--help")) { System.out.println(usage); System.exit(0); } } if (args[0].equals("-c")) if (args.length > 1) cfgPath = args[1]; else { System.out.println("SYSERR: You must specify the path of your config file with -c" + usage); System.exit(0); } else { System.out.println("SYSERR: Invalid arguments." + usage); System.exit(0); } }
  public static void main(String args[]) {    SephiaBot sephiaBot = new SephiaBot("sephiabot.cfg");    sephiaBot.connect();    while (true) {      sephiaBot.poll();    }  }