Uses 911K of libraries. Click here for Pure Java version (4285L/21K).
!7 cmodule AndroidCatBot > DynPrintLogAndEnabled { start { dm_vmBus_onMessage_q incomingDiscordMessage(voidfunc(Map map) { if (!enabled) ret; S input = getString content(map); if (isTrue(map.get('fromBot))) ret; if (empty(input)) ret; O module = map.get('module); long channelID = getLong channelID(map); print("Have " + n2(dm_attractorBotModules(), "bot module")); print("> " + input); dm_sendToAllAttractorBots(input, voidfunc(S s) { print("< " + s); dm_call(module, 'postInChannel, channelID, s); }); }); } }
Began life as a copy of #1023294
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: | #1023420 |
| Snippet name: | Discord Bot Connector - connect all loaded DynAttractorBots to Discord module |
| Eternal ID of this version: | #1023420/4 |
| Text MD5: | af59fb661fd058d3fa7671c012d2f0a5 |
| Transpilation MD5: | 4f0453ac048c7a2f85f73fd0dcfd4dde |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-06-18 17:03:49 |
| Source code size: | 619 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 471 / 1092 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |