🚀 测试文档工作流
This commit is contained in:
@ -12,7 +12,7 @@ Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
||||
import nonebot
|
||||
from liteyuki.utils import IS_MAIN_PROCESS
|
||||
from liteyuki.plugin import PluginMetadata, PluginType
|
||||
from .nb_utils import adapter_manager, driver_manager # type: ignore
|
||||
from .nb_utils import adapter_manager, driver_manager # type_: ignore
|
||||
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="NoneBot2启动器",
|
||||
|
19
src/liteyuki_plugins/ts_sm_ly.py
Normal file
19
src/liteyuki_plugins/ts_sm_ly.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
||||
|
||||
@Time : 2024/8/19 下午8:57
|
||||
@Author : snowykami
|
||||
@Email : snowykami@outlook.com
|
||||
@File : ts_sm.py
|
||||
@Software: PyCharm
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from liteyuki.comm.storage import shared_memory
|
||||
from liteyuki import get_bot
|
||||
|
||||
|
||||
@shared_memory.on_subscriber_receive("to_liteyuki")
|
||||
async def _(data):
|
||||
print("主进程接收数据async:", data)
|
Reference in New Issue
Block a user