Update main.py

master
TrainDoctor 2 years ago committed by GitHub
parent 8dd0b92dc0
commit 05eefd80a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,4 +15,8 @@ class Plugin:
# Asyncio-compatible long-running code, executed in a task when the plugin is loaded # Asyncio-compatible long-running code, executed in a task when the plugin is loaded
async def _main(self): async def _main(self):
logger.info("Hello World!") 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 pass

Loading…
Cancel
Save