An autosaver plugin for omegga.
Easy: omegga install gh:Meshiest/autosaveez
Manual:
git clone https://github.com/meshiest/omegga-autosaveez autosaveez
inplugins
directorynpm i
inautosaveez
directory
!asez save
- save bricks to an autosave file!asez list [page]
- paginated list of autosaves and their IDs!asez scan
- re-scan autosaves (only do this if you manually modify the files)!asez keep <id>
- mark an autosave as one not to auto-remove!asez load <id>
- load an autosave
enabled
- Autosave is enabledauthorized
- Comma separated list of authorized usernames who can use asez commandshost-only
- Whether asez commands are host onlyfolder
- Current folder to place autosaves in + read autosaves from. Leave blank for defaultBuilds
folernum-saves
- Number of saves to keep (0 means all). Enabling this will delete oldest autosaves not marked with_keep
save-interval
- Minutes between each autosave (minimum 1)autokeep-interval
- Minutes between keep saves to automatically enable keep on latest (0 means disabled). Intended to work withnum-saves
so infinite many keep saves will be stored but limited high frequency saves will not.check-brick-count
- Check brick count to determine if a save should be madeload-on-start
- Load latest autosave when server startsfilename-format
- Save file name format (requires $DATE)broadcast
- Announce to the server that an autosave was createdannounce-save
- Announce to the server that an autosave will be created
Methods you can run to interact with this plugin:
connect
- request to be added to events- responds with
connected
w/ the plugin api version on success
- responds with
disconnect
- request to be removed from events
Events your plugin will receive after running connect
:
save
- sendspath/to/save.brs
- run when asez moves the save fileconnected
- sends a number indicating plugin versiondisconnected
- run when this plugin stops and other plugins may need to reconnect