Libraryless. Click here for Pure Java version (2135L/14K/47K).
1 | !752 |
2 | |
3 | !include #1002900 // Web Chat API - chat.tinybrain.de |
4 | |
5 | static L<S> botIDs = splitWords("#1002907 #1002919");
|
6 | |
7 | static new L bots; |
8 | |
9 | p {
|
10 | for (S botID : botIDs) pcall {
|
11 | bots.add(hotwireDependent(botID)); |
12 | } |
13 | print("Loaded " + l(bots) + "/" + l(botIDs) + " web bots");
|
14 | for (O bot : bots) {
|
15 | set(bot, "externalSucker", mc()); |
16 | callMain(bot); |
17 | } |
18 | } |
19 | |
20 | static L getNewMessages(long lastID) {
|
21 | suckChat(); |
22 | L l = msgsFrom(lastID); |
23 | if (nempty(l)) |
24 | print("Distributing " + n(l(l), "new message"));
|
25 | ret l; |
26 | } |
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: | #1002920 |
| Snippet name: | Multi Web Chat Bot |
| Eternal ID of this version: | #1002920/1 |
| Text MD5: | a2939eb4e825ecf2a7722088688c81ef |
| Transpilation MD5: | d7efb895af2a09243e900755d0787a92 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-04-05 23:20:19 |
| Source code size: | 549 bytes / 26 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1086 / 1335 |
| Referenced in: | [show references] |