static synchronized S answer(S s, L<S> history) { if (match3("wie hei\u00dft du", s)) return "Leopold"; if (match3("wie ist deutschland", s)) { unhappy(); return "es ist h\u00e4sslich"; } if (match3("wie ist \u00f6sterreich", s)) { happy(); return "es ist sehr sch\u00f6n"; } /*if (match3("du bist lustig", s)) { happy(); return "danke sch\u00f6n"; }*/ // user input plus last Leo output and last user input S bla = structure(history.subList(Math.max(0, history.size()-3), history.size())); S answer = sendToRemoteBot("Leo Bot", "!" + bla); happy(); return answer; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment