예제 #1
0
  public ColorzBot(String botName, String broadcasterName, String server, int i, String oauth)
      throws Exception {

    // Initialize object constants
    setName(botName);
    myData = new ColorzBotData(broadcasterName);

    // Get data from database.
    readDatabase();

    for (TTuple2 t : fighters) {
      System.out.println(Delayed.<String>forced(t.mem1) + " " + Delayed.<String>forced(t.mem2));
    }

    this.setVerbose(true);
    this.connect(server, i, oauth);
    System.out.println("Connected");
    this.joinChannel("#" + broadcasterName);
    System.out.println("Channel joined: " + broadcasterName);
  }
예제 #2
0
 private void readDatabase() {
   fighters = Delayed.<ArrayList<TTuple2>>forced(fregeHelper.FregeCode.getDatabase(DATABASE));
 }
예제 #3
0
 public void hello(String name) {
   Delayed.forced(PreludeBase.TST.performUnsafe(polyglot.frege.HelloFrege.hello(name)));
 }