1 | svoid bot_handleSmartBotsChat() { |
2 | smartBotsChat_onLine_lookback = 1; |
3 | //smartBotsChat_onLine_onHistoryRead.set(f onHistoryRead); |
4 | smartBotsChat_onLine_safe(voidfunc(fS text) { |
5 | pcall { |
6 | int nr = toInt(mapGet(stefansChat_onLine_fullParams!, "nr")); |
7 | print("> [" + nr + "] " + text); |
8 | if (nr != 0) |
9 | smartBotsChat_n_notify(nr); |
10 | } |
11 | |
12 | S a = answer(text); |
13 | a = bot_shortenAnswerForChatAndUploadFull(myName, text, a); |
14 | postToSmartBotsChat(a); |
15 | }); |
16 | } |
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
Snippet ID: | #1012636 |
Snippet name: | bot_handleSmartBotsChat |
Eternal ID of this version: | #1012636/1 |
Text MD5: | 3658b1f6c5bc2c969d8be962cdd357e2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-09 01:21:47 |
Source code size: | 503 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 544 / 559 |
Referenced in: | [show references] |