Libraryless. Click here for Pure Java version (7829L/50K).
sS philosophyBotWithFactStore_discordAnswer(S theory, SimpleFactStore factStore, S s, O... _) { ret philosophyBotWithFactStore_discordAnswer(new PhilosophyBot1(theory), factStore, s, _); } sS philosophyBotWithFactStore_discordAnswer(PhilosophyBot1 bot, SimpleFactStore factStore, S s, O... _) { optPar long userID; optPar bool fromBot; print(userID + " (" + (fromBot ? "bot" : "human") + "): " + s); S user = "(user " + userID + ")"; if (factStore != null) { factStore.onChange(r change); factStore.verbose = true; philosophyBot1_factStore(bot, factStore); } bot.standardImports(); bot.autoOpenTheories(); bot.addFact(user + " is a " + (fromBot ? "bot" : "human")); bot.addFact(user + " says (" + bot.sanitizeInput(s) + ")"); bot.run(); ret first(bot.matchFacts("$x", "say $x")); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025764 |
Snippet name: | philosophyBotWithFactStore_discordAnswer |
Eternal ID of this version: | #1025764/5 |
Text MD5: | f3589a1b0e422b17e9abce422b4afcf2 |
Transpilation MD5: | d02de09105910999bf0ab3a8d0a367af |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-20 14:59:10 |
Source code size: | 856 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 275 / 388 |
Version history: | 4 change(s) |
Referenced in: | [show references] |