Well I have been talking about this for some time now and I think there seems to be some confusion on how (I envision) it will work. Here is my breakdown of how I envision things ending up with the online storage.
The server will have a simple api. Pass it a key (will explain) and your command and it will either save the localStorage to the server, or load the localStorage from the server and update the browser before the bot reads the memory.
If there is no key present the entire process will be ignored and the command not loaded, and the localStorage loaded like normal. (so minimal internal changes, and a !!saveMemory
command that automatically triggers on an interval of your choice).
The keys will be generated and saved by the server. Admin access (logins can be discussed) will allow you to obtain keys to insert into your loading script. Again to be minimal we could just tell the users to include var MEMORY_KEY = key;
in before the script is run and the bot just needs to check for that variable or move on to normal loading.
- If a maintainer goes down another maintainer can pick up where he left off without any hassle.
- Purging old user taught commands will be easier.
- We can expand the bot+chat relationship with userscript that have access to user taught commands.
- ???
- Profit!!!
If I have missed anything please comment.
Ohhh! Just had an idea... the entire thing can also just be part of the loading script. if we don't want to bake anything into the bot. So there could be a specific loader we can release JUST for us that could facilitate all of this.