Uses 5909K of libraries. Click here for Pure Java version (14525L/81K).
1 | !7 |
2 | |
3 | cmodule UserSelfInfoBot > DynTalkBot { |
4 | switchable S sliceID; |
5 | |
6 | start { |
7 | myName = "UserSelfInfoBot"; |
8 | sliceID = "phcrwqpsrrmxdqft"; |
9 | } |
10 | |
11 | S processSimplifiedLine(S s, O... _) { |
12 | optPar long userID; |
13 | S user = discordAt(userID); |
14 | |
15 | if "what's your name" ret myName; |
16 | |
17 | if (containsOneOfTheWords(s, ai_backReferencingWords())) |
18 | ret null with print("Contains back-referencing word"); |
19 | |
20 | S objective = switcheroo_iToName(user, s); |
21 | print("Objective >> " + objective); |
22 | if (!contains(objective, user)) |
23 | ret null with print("No I found"); |
24 | |
25 | if (agiBlue_postInSlice_trueIfNew(sliceID, user, "fact", objective)) |
26 | ret "Thanks, I will store this. " + user; |
27 | else |
28 | ret "Yes I know, " + user; |
29 | } |
30 | } |
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: | #1024520 |
Snippet name: | UserSelfInfoBot |
Eternal ID of this version: | #1024520/13 |
Text MD5: | 3cec26c91bdb36d6805fc12c62e1f881 |
Transpilation MD5: | b82a9614d70b2f1807d63d4c8becb06e |
Author: | stefan |
Category: | |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-08 12:53:39 |
Source code size: | 779 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 668 |
Version history: | 12 change(s) |
Referenced in: | [show references] |