Open Sekoya78 opened 1 year ago
I like the regex use, and I should have done that from the start.
The addition of the string before the memory is something that I think would be better implemented as an option. I'll look at adding both of these this week.
Hi, I like your plugin very much. I think I made an useful improvement I would like to share with you:
Currently if you have a memory keyword like "AI", it will trigger the memory even if the user is typing "ain't it?". Alone it's not that big of a problem, but when you're having dozens of memory slots like me, many of them with short keywords, it starts to become one. So, I took the liberty to alter your keyword detection code.
in the imports you'll need to add
import re
then, replace everything between
# create out memory rows
andif memory_settings["position"] == "Before Context":
My python skills are terrible, you can likely concatenate those strings better, but that's the gist of it. What it does:
Additionally, I've noticed that using this format: bot's important memories: $list was working extremely well.
My apologies for not doing a pull request.