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

10
LINES

< > BotCompany Repo | #1017825 // ai_tg_rulesFiredOnMessage

JavaX fragment (include)

1  
static LS ai_tg_rulesFiredOnMessage(S msgID) {
2  
  S quotedMsg = format3_formatArg(msgID);
3  
  S pat = "Rule * fired on message " + quotedMsg;
4  
  new Matches m;
5  
  new LS rules;
6  
  for (S s : mL("Telegram Rule Fires"))
7  
    if (contains(s, quotedMsg) && matchStart(pat, s, m))
8  
      rules.add($1);
9  
  ret rules;
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017825
Snippet name: ai_tg_rulesFiredOnMessage
Eternal ID of this version: #1017825/2
Text MD5: f8789ff6b53ab7ae1d258bb781d920c3
Author: stefan
Category: javax / telegram
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-15 14:30:54
Source code size: 315 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 383 / 424
Version history: 1 change(s)
Referenced in: [show references]