Save Module

Alfred Botman

Compatibility:

Description

This module will backup any informations botman/alfred has, including but not limited to: This module is more a demo than a real utility.
It might help you to export informations, or debug things.
Another benefit from this is the ability to remember custom variables form any botman after restarting alfred, which can be handy for offline bots.

Configuration

Configuration is done inside /usr/local/etc/gotham/modules.conf.d/save.conf:

{
    "interval": 30
}
This interval represents the time between two exports.
Exported file will be located inside /usr/local/share/gotham/modules.d/save/ and will be in JSON.

Commands

(15:18:18) guillaume.friloux@botnet.master.com: .save
(15:18:18) Alfred Pennyworth: Dear guillaume.friloux@botnet.master.com, backup is made every 30 seconds. Last backup was on 2015/11/12 at 15:18:04, for a size of 446,067 bytes. Sincerly yours, Alfred.
(15:22:10) guillaume.friloux@botnet.master.com: .save set interval 60
(15:22:11) Alfred Pennyworth: Modification done.