public static void main(String[] args) { b.setVerbose(true); try { loadSettings(); } catch (Exception e) { System.err.println("Failed to process config file: " + e.getMessage()); System.exit(0); } try { b.setName(nick); b.connect(server); for (String s : channels) b.joinChannel(s); } catch (Exception e) { System.err.println("Could not connect to server: " + e.getMessage()); System.exit(0); } }
public static void Action(String target, String action) { b.sendAction(target, action); }
public static void Message(String target, String action) { b.sendMessage(target, action); }
public static String Nick() { return b.getNick(); }