From 05eefd80a5315c6cd7e72718878682d7de29f56f Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Sat, 22 Oct 2022 18:48:59 -0700 Subject: [PATCH] Update main.py --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 60ac607..c0ec3ff 100644 --- a/main.py +++ b/main.py @@ -15,4 +15,8 @@ class Plugin: # Asyncio-compatible long-running code, executed in a task when the plugin is loaded async def _main(self): logger.info("Hello World!") + + # Function called first during the unload process, utilize this to handle your plugin being removed + async def _unload(self): + logger.info("Goodbye World!") pass