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); }
private void readDatabase() { fighters = Delayed.<ArrayList<TTuple2>>forced(fregeHelper.FregeCode.getDatabase(DATABASE)); }
public void hello(String name) { Delayed.forced(PreludeBase.TST.performUnsafe(polyglot.frege.HelloFrege.hello(name))); }