Uses 4998K of libraries. Click here for Pure Java version (14882L/107K).
1 | !7 |
2 | |
3 | // cmodule fails because of loadPageWithUserAgent |
4 | module GBot > DynDiscordHopper { |
5 | S myName = "GBot"; |
6 | int defaultResults = 1; |
7 | |
8 | @Override S answer(S input, Map map) { |
9 | ret mapEachLine_tlft_nempties(input, s -> { |
10 | new Matches m; |
11 | |
12 | if (swic_trim(s, myName + ":", m)) |
13 | ret discord_google(m.rest(), results := defaultResults); |
14 | |
15 | null; |
16 | }); |
17 | } |
18 | } |
Began life as a copy of #1024114
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024115 |
Snippet name: | GBot backup v1 (Discord Bot that googles) |
Eternal ID of this version: | #1024115/5 |
Text MD5: | 2fde802d35de84a328c3919f5cffdc3a |
Transpilation MD5: | 943940e657c916519c3745385e49d05e |
Author: | stefan |
Category: | javax / discord / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-21 15:16:30 |
Source code size: | 409 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 229 / 319 |
Version history: | 4 change(s) |
Referenced in: | [show references] |