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

18
LINES

< > BotCompany Repo | #1021667 // Discord Image Spike [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 8300K of libraries. Click here for Pure Java version (6362L/45K).

!7

p-exp {
  logModuleOutput();
  discordBot(voidfunc(MessageReceivedEvent e) {
    print("Channel type: " + e.getChannelType());
    bool isPrivate = e.getChannelType() == ChannelType.PRIVATE;
    print("Msg from " + e.getAuthor().getName() + ": " + e.getMessage().getContentDisplay());
    S s = e.getMessage().getContentRaw();
    if "gazelle image" {
      e.getChannel().sendMessage(
        new EmbedBuilder()
          .setImage("http://botcompany.de/1004590/raw/1101425")
          .setColor(Color.white)
          .build()).queue();
    }
  });
}

Author comment

Began life as a copy of #1021618

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1021667
Snippet name: Discord Image Spike [OK]
Eternal ID of this version: #1021667/4
Text MD5: 67f1326fbda50004735583726c578087
Transpilation MD5: db4e4c9a1f4b792be5bffe1b5161177b
Author: stefan
Category: javax / discord
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-23 22:30:06
Source code size: 573 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 353 / 912
Version history: 3 change(s)
Referenced in: