Uses 911K of libraries. Click here for Pure Java version (4516L/23K).
!7 cmodule GProcessAIBar > DynPrintLogAndEnabled { start { dm_onTopInput_q(voidfunc(S input) { S channelName = "AI bar " + computerID(); long msgID = uniqueNow(); print("Have input: " + input); print("Channel: " + channelName + ", msgID: " + msgID); S crud = dm_gazelle_linesCRUD(); // user S userName = "user"; long userID = md5_long(userName); O userConcept = dm_call(crud, 'uniqUser, userID); dm_call(crud, 'cset, userConcept, name := userName); // channel O channel = dm_call(crud, 'uniqChannel, channelName); // line O lineConcept = dm_call(crud, 'uniqConcept, +msgID); dm_call(crud, 'cset, lineConcept, text := input, author := userConcept, +channel); S globalID = getString globalID(lineConcept); print("Stored line: " + globalID); vmBus_send('gazelleActionableLine, globalID); }); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022788 |
Snippet name: | Gazelle: Process Input From AI Bar |
Eternal ID of this version: | #1022788/5 |
Text MD5: | e5074305df1a6b9f1f7e98becf506cf6 |
Transpilation MD5: | a89643dfc1302591baad12d8a02f0a76 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-07 16:40:26 |
Source code size: | 1036 bytes / 38 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 249 / 683 |
Version history: | 4 change(s) |
Referenced in: | [show references] |