Uses 5909K of libraries. Click here for Pure Java version (8859L/46K).
1 | !7 |
2 | |
3 | cmodule RadioBot extends DynTalkBot2<.ByServer> {
|
4 | start {
|
5 | makeByServer = () -> new ByServer; |
6 | useAGIBlueForDropPunctuation = false; |
7 | preprocessAtSelfToMyName = false; |
8 | } |
9 | |
10 | class ByServer extends DynTalkBot2.ByServer {
|
11 | synchronized S processSimplifiedLine(S s, O... _) {
|
12 | try answer super.processSimplifiedLine(s, _); // adding authorized users etc. |
13 | new Matches m; |
14 | if null (s = dropMyPrefixOrNull(s)) null; |
15 | |
16 | if (eqic(s, "help")) |
17 | ret ltrim([[ |
18 | I play house music in voice channels. |
19 | |
20 | !!!play |
21 | !!!pause |
22 | !!!stop |
23 | |
24 | [Bot made by https://BotCompany.de] |
25 | ]]).replace("@me", atSelf());
|
26 | |
27 | null; |
28 | } |
29 | } |
30 | } |
Began life as a copy of #1025304
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025329 |
| Snippet name: | Radio Bot [abandoned] |
| Eternal ID of this version: | #1025329/4 |
| Text MD5: | 9baae16e80dd4234fd02f15436063a84 |
| Transpilation MD5: | 146da62d10ae6c980b9dedb95f9fb894 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-25 22:19:50 |
| Source code size: | 684 bytes / 30 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 462 / 619 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |