Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to be able to set botname or username in aiml #1370

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Proposal to be able to set botname or username in aiml
  • Loading branch information
supertick committed Nov 29, 2023
commit fd0f50dc5fd6afb5b9316411418fdbeda4acdb1c
6 changes: 6 additions & 0 deletions src/main/java/org/myrobotlab/service/ProgramAB.java
Original file line number Diff line number Diff line change
@@ -1201,6 +1201,12 @@ synchronized public void onChangePredicate(Chat chat, String predicateName, Stri
if (s.chat == chat) {
// found session saving predicates
invoke("publishPredicate", s, predicateName, result);
if ("botname".equals(predicateName)) {
setCurrentBotName(result);
}
if ("username".equals(predicateName)) {
setCurrentUserName(result);
}
s.savePredicates();
return;
}
Loading