Lifecycle Hooks
Last updated
Was this helpful?
The on_load function is called when the plugin is loaded into memory.
@override
def on_load(self, db):
print("Plugin loaded")The on_unload function is called when the plugin is unloaded from memory.
@override
def on_unload(self, db):
print("Plugin unloaded")The on_start function is called when the plugin is started.
@override
def on_start(self, db):
print("Plugin started")The on_stop function is called when the plugin is stopped.
Last updated
Was this helpful?
Was this helpful?
@override
def on_stop(self, db):
print("Plugin stopped")