Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1024115 // GBot backup v1 (Discord Bot that googles)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 4998K of libraries. Click here for Pure Java version (14882L/107K).

!7

// cmodule fails because of loadPageWithUserAgent
module GBot > DynDiscordHopper {
  S myName = "GBot";
  int defaultResults = 1;
  
  @Override S answer(S input, Map map) {
    ret mapEachLine_tlft_nempties(input, s -> {
      new Matches m;
      
      if (swic_trim(s, myName + ":", m))
        ret discord_google(m.rest(), results := defaultResults);
      
      null;
    });
  }
}

Author comment

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: 160 / 229
Version history: 4 change(s)
Referenced in: [show references]