Libraryless. Click here for Pure Java version (1123L/8K/26K).
1 | !752 |
2 | |
3 | static S myName = "Spam Bot 2"; |
4 | static int historySuck = 100; |
5 | static int room = 1; |
6 | |
7 | static new TreeSet<S> lines; |
8 | |
9 | p { |
10 | suckWebChat_room = sayInWebChat_room = room; |
11 | |
12 | thread "Spam Bot 2" { |
13 | while (licensed()) { |
14 | pcall { |
15 | for (ChatLine l : suckWebChat(myName, historySuck)) { |
16 | lines.add(l.text); |
17 | } |
18 | sayInWebChat(myName, makeRandomLine()); |
19 | } |
20 | sleepSeconds(10); |
21 | } |
22 | } |
23 | } |
24 | |
25 | static S makeRandomLine() { |
26 | ret oneOf(asList(lines)); |
27 | } |
Began life as a copy of #1002892
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: | #1002893 |
Snippet name: | Spam Bot v2 - says a random line every 10 seconds (dev.) |
Eternal ID of this version: | #1002893/1 |
Text MD5: | a6f5bf9e2d59575c4caf2baa06e48e85 |
Transpilation MD5: | 7f5f687107eb6eb4615c885830f47256 |
Author: | stefan |
Category: | eleu / nl |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-31 20:19:36 |
Source code size: | 514 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 2052 / 1932 |
Referenced in: | [show references] |