1 | static DialogIO findBot(S searchPattern) { |
2 | for (ProgramScan.Program p : quickBotScan()) |
3 | if (indexOfIgnoreCase(p.helloString, searchPattern) == 0) // strict matching - start of hello string only, but case-insensitive |
4 | return talkTo("localhost", p.port); |
5 | return null; |
6 | } |
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: | #1001203 |
Snippet name: | findBot |
Eternal ID of this version: | #1001203/1 |
Text MD5: | 06bf369fbc43a516b4c0f495d85aebf4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-30 19:42:53 |
Source code size: | 285 bytes / 6 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 641 / 562 |
Referenced in: | [show references] |