Libraryless. Click here for Pure Java version (1123L/8K/26K).
1 | !747 |
2 | |
3 | m { |
4 | p { |
5 | makeAndroid3("OK Sender Bot."); |
6 | } |
7 | |
8 | static synchronized S answer(S s, L<S> history) { |
9 | if (match3("ok", s)) { |
10 | final L<S> _history = new ArrayList<S>(history); |
11 | thread { |
12 | print("[server response to ok submit] " + sendOK(_history)); |
13 | } |
14 | ret ":) Will forward to server (with history)!"; |
15 | } |
16 | ret null; |
17 | } |
18 | |
19 | static S sendOK(L<S> history) { |
20 | S userLine = history.get(history.size()-1); |
21 | S user = "?"; |
22 | S botID = getProgramID(); |
23 | S computerID = getComputerID(); |
24 | long date = now(); |
25 | |
26 | S line = format3("New entry. user line: *, date: *, user: *, botID: *, computerID: *, dialog history: *", |
27 | userLine, date, user, botID, computerID, history); |
28 | return sendToRemoteBot("OK Collector Bot", line); |
29 | } |
30 | } |
Began life as a copy of #1001257
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001258 |
Snippet name: | OK Sender Bot (does nothing but send OKs to server if you type "ok") |
Eternal ID of this version: | #1001258/1 |
Text MD5: | c9640af75e8f8b666c89b4db7497f1c9 |
Transpilation MD5: | e1425067e837d2c4bb6f0a11d61b71a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-05 18:00:12 |
Source code size: | 816 bytes / 30 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 641 / 638 |
Referenced in: | [show references] |