2022-06-20 15:49:53 +08:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
2023-05-18 16:00:10 +08:00
|
|
|
from nonebot.adapters import Adapter
|
2022-06-20 15:49:53 +08:00
|
|
|
from nonebot.plugin import PluginMetadata
|
|
|
|
|
|
|
|
|
|
|
|
class Config(BaseModel):
|
|
|
|
custom: str = ""
|
|
|
|
|
|
|
|
|
2023-05-18 16:00:10 +08:00
|
|
|
class FakeAdapter(Adapter):
|
|
|
|
...
|
|
|
|
|
|
|
|
|
2022-06-20 15:49:53 +08:00
|
|
|
__plugin_meta__ = PluginMetadata(
|
|
|
|
name="测试插件",
|
|
|
|
description="测试插件元信息",
|
|
|
|
usage="无法使用",
|
2023-05-18 16:00:10 +08:00
|
|
|
type="application",
|
|
|
|
homepage="https://v2.nonebot.dev",
|
2022-06-20 15:49:53 +08:00
|
|
|
config=Config,
|
2023-05-18 16:00:10 +08:00
|
|
|
supported_adapters={"~onebot.v11", "plugins.metadata:FakeAdapter"},
|
2022-06-20 15:49:53 +08:00
|
|
|
extra={"author": "NoneBot"},
|
|
|
|
)
|