mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-15 13:14:24 +08:00
974b97b744
📝 将适配器配置初始化和注册移动到 utils.adapter_manager
13 lines
217 B
Python
13 lines
217 B
Python
import nonebot
|
|
from nonebot.adapters.onebot import v11, v12
|
|
|
|
|
|
def init():
|
|
pass
|
|
|
|
|
|
def register():
|
|
driver = nonebot.get_driver()
|
|
driver.register_adapter(v11.Adapter)
|
|
driver.register_adapter(v12.Adapter)
|