Export import#215
Conversation
|
+1 |
2 similar comments
|
+1 |
|
+1 |
|
I think that clearing the memory should automatically back it up to a gist to prevent mishaps. Other than that good commit, clean. |
|
@benjamingr I'm not sure what would be the best way to implement that. Extract export into a separate function, or chain the command? var exportResult = bot.commands['export'].exec();
bot.memory.clear();
return exportResult + ' Bot memory cleared. Please restart the bot.';Might also be a good idea to clear before importing new data, since the import |
|
Yeah, an import should probably clear old data
|
…ing from a previous export. Also allow clearing of bot memory.
…ws synchronous XHR.
Add export and import commands using the GitHub Gist API for storage. Issue #158.