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