Uses 9211K of libraries. Click here for Pure Java version (5224L/27K).
1 | !7 |
2 | |
3 | cmodule DiscordTokenDetector > DynPrintLogAndEnabled { |
4 | !include #1023434 // Discord |
5 | bool discordEnabled() { ret enabled; } |
6 | |
7 | start { |
8 | startDiscord(); |
9 | dm_vmBus_onMessage_q incomingDiscordMessage(voidfunc(Map map) { |
10 | if (!enabled) ret; |
11 | O module = map.get('module); |
12 | if (!dm_isMe(module)) ret; |
13 | S s = getString content(map); |
14 | |
15 | LS tokens = extractPossibleDiscordTokens(s); |
16 | if (nempty(tokens)) |
17 | dm_call(module, 'reply, map, "That's a Discord token!"); |
18 | }); |
19 | } |
20 | } |
Began life as a copy of #1023438
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: | #1023439 |
Snippet name: | Discord Token Detector Standalone Bot |
Eternal ID of this version: | #1023439/1 |
Text MD5: | 9b3e55046109cf00dd49ea16ad110532 |
Transpilation MD5: | db4121b7df38aa3eccfd35889e471198 |
Author: | stefan |
Category: | javax / discord / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-21 20:32:34 |
Source code size: | 536 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 262 / 710 |
Referenced in: | [show references] |