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).

1  
!7
2  
3  
set flag JDA40.
4  
!include once #1026298 // DynTalkBot2 for JDA 4.x
5  
6  
standardBot1 MyDiscordBot {
7  
  init {
8  
    dropPunctuation = false; // fix the @ bug
9  
    preprocessAtSelfToMyName = true;
10  
    myName = "adibot";
11  
  }
12  
  
13  
  processSimplified {
14  
    s = dropMyPrefixOpt(s);
15  
    
16  
    if "help" {
17  
      ret [[
18  
@me `help` - show this help
19  
]].replace("@me", atSelf());
20  
    }
21  
  }
22  
}

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: 98 / 856
Version history: 8 change(s)
Referenced in: [show references]