Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Command auto-reloading and snapshotting #87

@sr229

Description

@sr229

This is a new specification for Clara's Command Holder. Designated as Command Holder Revision 3 slated for 0.5.0 Sparkling Satania.

The Autoreload system

The command holder inspects a command folder's contents and if it sees a file change on the main file or it's dependents, it enforces a hot auto-reload. This should be only logged at the console and silent from the Discord side.

Snapshot system

This is in par with the autoreload system. once the CommandHolder detects there is a file change, it quickly saves the previously-loaded command object and "snpashots" it and stores on a volatile storage. It has two conditions, if the newer command object successfully inits and works without errors, the snapshotted object is discarded however if the newer command object fails to load properly, the Command Holder has to use the "last known good snapshot" of the command object.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions