Download Jar. Uses 8300K of libraries. Click here for Pure Java version (6362L/45K).
1 | !7 |
2 | |
3 | p-exp { |
4 | logModuleOutput(); |
5 | discordBot(voidfunc(MessageReceivedEvent e) { |
6 | print("Channel type: " + e.getChannelType()); |
7 | bool isPrivate = e.getChannelType() == ChannelType.PRIVATE; |
8 | print("Msg from " + e.getAuthor().getName() + ": " + e.getMessage().getContentDisplay()); |
9 | S s = e.getMessage().getContentRaw(); |
10 | if "gazelle image" { |
11 | e.getChannel().sendMessage( |
12 | new EmbedBuilder() |
13 | .setImage("http://botcompany.de/1004590/raw/1101425") |
14 | .setColor(Color.white) |
15 | .build()).queue(); |
16 | } |
17 | }); |
18 | } |
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: | 352 / 907 |
Version history: | 3 change(s) |
Referenced in: | [show references] |