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

22
LINES

< > BotCompany Repo | #1031037 // Discord Bot Template

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

Uses 11163K of libraries. Click here for Pure Java version (16257L/85K).

!7

set flag JDA40.
!include once #1026298 // DynTalkBot2 for JDA 4.x

standardBot1 MyDiscordBot {
  init {
    dropPunctuation = false; // fix the @ bug
    preprocessAtSelfToMyName = true;
    myName = "adibot";
  }
  
  processSimplified {
    s = dropMyPrefixOpt(s);
    
    if "help" {
      ret [[
@me `help` - show this help
]].replace("@me", atSelf());
    }
  }
}

Author comment

Began life as a copy of #1025913

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, uhjabitqdyqv, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1031037
Snippet name: Discord Bot Template
Eternal ID of this version: #1031037/9
Text MD5: 6432dc178cf602768983670ea3d7ff27
Transpilation MD5: 1b2321ec95975461091ffb0e2acba9b1
Author: stefan
Category: javax / discord bots
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-24 19:15:29
Source code size: 394 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 942
Version history: 8 change(s)
Referenced in: