Libraryless. Click here for Pure Java version (830L/6K/19K).
1 | !752 |
2 | |
3 | answer {
|
4 | if "which users have you had" {
|
5 | L history = cast get(getMainBot(), "history"); |
6 | new TreeSet<S> users; |
7 | |
8 | for (O dialog : history) {
|
9 | S user = getString(dialog, "user"); |
10 | if (user != null) |
11 | users.add(user); |
12 | } |
13 | |
14 | ret structure(list(users)); |
15 | } |
16 | } |
Began life as a copy of #1002468
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: | #1002573 |
| Snippet name: | Distinct Users Bot (dev.) |
| Eternal ID of this version: | #1002573/1 |
| Text MD5: | 866a1d1c8c4d52d799bf95e74b6be054 |
| Transpilation MD5: | ec8613003c12eed8db6eaea89629b12e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-02-02 17:32:17 |
| Source code size: | 316 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 911 / 1458 |
| Referenced in: | [show references] |