pdm add nonebot-plugin-wait-a-minute
poetry add nonebot-plugin-wait-a-minute
from nonebot import require
require('nonebot_plugin_wait_a_minute') # require plugin
from nonebot_plugin_wait_a_minute import on_shutdown_before
@on_shutdown_before
def _():
# do something
...
# or use async func
@on_shutdown_before
async def _():
# await do something
...
This project is open source using the MIT license