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

30
LINES

< > BotCompany Repo | #1025329 // Radio Bot [abandoned]

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

Uses 5909K of libraries. Click here for Pure Java version (8859L/46K).

!7

cmodule RadioBot extends DynTalkBot2<.ByServer> {
  start {
    makeByServer = () -> new ByServer;
    useAGIBlueForDropPunctuation = false;
    preprocessAtSelfToMyName = false;
  }

  class ByServer extends DynTalkBot2.ByServer {
    synchronized S processSimplifiedLine(S s, O... _) {
      try answer super.processSimplifiedLine(s, _); // adding authorized users etc.
      new Matches m;
      if null (s = dropMyPrefixOrNull(s)) null;

      if (eqic(s, "help"))
        ret ltrim([[
I play house music in voice channels.

!!!play
!!!pause
!!!stop

[Bot made by https://BotCompany.de]
  ]]).replace("@me", atSelf());
  
      null;
    }
  }
}

Author comment

Began life as a copy of #1025304

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: #1025329
Snippet name: Radio Bot [abandoned]
Eternal ID of this version: #1025329/4
Text MD5: 9baae16e80dd4234fd02f15436063a84
Transpilation MD5: 146da62d10ae6c980b9dedb95f9fb894
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-25 22:19:50
Source code size: 684 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 242
Version history: 3 change(s)
Referenced in: [show references]