I could write this myself, but because i don`t want to reinvent the wheel if not needed. I am asking here if what I want to do is already done.
I want to store variables inside the memory but them shall be permanently saved on harddisk also. Each time I modify a variable or restart the bot this variable shall be read from a file on harddisk. If I just want to read them, them shall be in memory for faster access.
I don't think its been done already, but a simple rename on the variable/set proc and add in a regexp check maybe (to check syntax + check namespace if used), then save to your file and set the var.
On bot loadup, just load the contents of the file instead of accessing it and then keeping it in memory, it would cause more hassle checking if the var does not exist in both cases if you know what i mean.
I'd say it'd be easier to use the trace-command if it's a limited set of variables. This would also cover all other commands that affect variables, as there are more than just "set" and "variable"