Changes string_key_memory to permanent_memory.

Fixes:
```Command memory_ovr returned: Error: module 'memory' has no attribute 'string_key_memory'```
This commit is contained in:
Toran Bruce Richards
2023-04-06 08:07:54 +01:00
committed by GitHub
parent b418861d70
commit 962fc9a42a

View File

@@ -218,7 +218,7 @@ def overwrite_memory(key, string):
elif isinstance(key, str):
_text = "Overwriting memory with key " + key + " and string " + string
# Overwrite the memory slot with the given string key and string
mem.string_key_memory[key] = string
mem.permanent_memory[key] = string
print(_text)
return _text
else: