Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1012636 // bot_handleSmartBotsChat

JavaX fragment (include)

svoid bot_handleSmartBotsChat() {
  smartBotsChat_onLine_lookback = 1;
  //smartBotsChat_onLine_onHistoryRead.set(f onHistoryRead);
  smartBotsChat_onLine_safe(voidfunc(fS text) {
    pcall {
      int nr = toInt(mapGet(stefansChat_onLine_fullParams!, "nr"));
      print("> [" + nr + "] " + text);
      if (nr != 0)
        smartBotsChat_n_notify(nr);
    }
    
    S a = answer(text);
    a = bot_shortenAnswerForChatAndUploadFull(myName, text, a);
    postToSmartBotsChat(a);
  });
}

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: 465 / 486
Referenced in: [show references]