Uses 9211K of libraries. Click here for Pure Java version (5224L/27K).
!7 cmodule DiscordTokenDetector > DynPrintLogAndEnabled { !include #1023434 // Discord bool discordEnabled() { ret enabled; } start { startDiscord(); dm_vmBus_onMessage_q incomingDiscordMessage(voidfunc(Map map) { if (!enabled) ret; O module = map.get('module); if (!dm_isMe(module)) ret; S s = getString content(map); LS tokens = extractPossibleDiscordTokens(s); if (nempty(tokens)) dm_call(module, 'reply, map, "That's a Discord token!"); }); } }
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: | 261 / 709 |
Referenced in: | [show references] |