Пример #1
0
  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);
    }
  }
Пример #2
0
 public static void Action(String target, String action) {
   b.sendAction(target, action);
 }
Пример #3
0
 public static void Message(String target, String action) {
   b.sendMessage(target, action);
 }
Пример #4
0
 public static String Nick() {
   return b.getNick();
 }