Libraryless. Click here for Pure Java version (2569L/18K/57K).
!752 static Class mainBot; p { startBot("Snippet Text Bot", "#1002084"); } static S html() { ret "<p>These are the commands of which I know that I know them:</p>" + htmlTable(allQuestions()); } static L<S> allQuestions() { L<S> botIDs = cast get(mainBot, "botIDs"); new Set<S> set; for (S botID : botIDs) pcall { S src = loadSnippetThroughBot(botID); set.addAll(getSupportedQuestions(src)); } ret list(set); } static S loadSnippetThroughBot(S snippetID) { S answer = sendToLocalBot("Snippet Text Bot", "what is the text of snippet *", snippetID); new Matches m; assertTrue(match("the text of snippet * is *", answer, m)); ret m.unq(1); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment