svoid bot_handleStefansChat() {
stefansChat_onLine_lookback = 1;
//stefansChat_onLine_onHistoryRead.set(f onHistoryRead);
stefansChat_onLine_safe(voidfunc(fS text) {
pcall {
int nr = toInt(mapGet(stefansChat_onLine_fullParams!, "nr"));
print("> [" + nr + "] " + text);
if (nr != 0)
stefansChat_n_notify(nr);
}
S a = answer(text);
a = bot_shortenAnswerForChatAndUploadFull(myName, text, a);
postToStefansChat(a);
});
}Began life as a copy of #1012636
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: | #1012638 |
| Snippet name: | bot_handleStefansChat |
| Eternal ID of this version: | #1012638/1 |
| Text MD5: | 37295df6666e6bd0a65b131093c4c69f |
| 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 02:11:52 |
| Source code size: | 491 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 891 / 1049 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1012639 - bot_handleBothChats |