summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2022-10-22 18:48:59 -0700
committerGitHub <noreply@github.com>2022-10-22 18:48:59 -0700
commit05eefd80a5315c6cd7e72718878682d7de29f56f (patch)
tree69c506a8bcb14bc16f6a5defce2c1357a0b9ed8f
parent8dd0b92dc09906e19cc19a22222ca06e74914963 (diff)
downloaddecky-bazzite-buddy-05eefd80a5315c6cd7e72718878682d7de29f56f.tar.gz
decky-bazzite-buddy-05eefd80a5315c6cd7e72718878682d7de29f56f.zip
Update main.py
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
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