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

16
LINES

< > BotCompany Repo | #1012638 // bot_handleStefansChat

JavaX fragment (include)

1  
svoid bot_handleStefansChat() {
2  
  stefansChat_onLine_lookback = 1;
3  
  //stefansChat_onLine_onHistoryRead.set(f onHistoryRead);
4  
  stefansChat_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  
        stefansChat_n_notify(nr);
10  
    }
11  
    
12  
    S a = answer(text);
13  
    a = bot_shortenAnswerForChatAndUploadFull(myName, text, a);
14  
    postToStefansChat(a);
15  
  });
16  
}

Author comment

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