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 = ""
|
|
|
|
|
|
|
|
|
2024-02-06 12:48:23 +08:00
|
|
|
class FakeAdapter(Adapter): ...
|
2023-05-18 16:00:10 +08:00
|
|
|
|
|
|
|
|
2022-06-20 15:49:53 +08:00
|
|
|
__plugin_meta__ = PluginMetadata(
|
|
|
|
name="测试插件",
|
|
|
|
description="测试插件元信息",
|
|
|
|
usage="无法使用",
|
2023-05-18 16:00:10 +08:00
|
|
|
type="application",
|
2023-06-01 14:18:16 +08:00
|
|
|
homepage="https://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"},
|
|
|
|
)
|