2024-07-11 18:26:21 +08:00
|
|
|
|
from nonebot.plugin import PluginMetadata, inherit_supported_adapters, require
|
2024-08-22 22:50:18 +08:00
|
|
|
|
|
2024-07-11 18:26:21 +08:00
|
|
|
|
require("nonebot_plugin_htmlrender")
|
|
|
|
|
require("nonebot_plugin_alconna")
|
|
|
|
|
from .acgnshower import *
|
|
|
|
|
from nonebot import get_driver
|
|
|
|
|
from .config import ConfigModel
|
2024-08-22 22:50:18 +08:00
|
|
|
|
|
2024-07-11 19:00:25 +08:00
|
|
|
|
usage = """命令格式:
|
|
|
|
|
展览 <地区> [页码]
|
|
|
|
|
或
|
|
|
|
|
<地区>展览 [页码]
|
|
|
|
|
其中地区为省级行政区或地级行政区(不包含后缀)
|
|
|
|
|
(如北京,福建,平顶山,绍兴,香港...,或海外/全国)
|
|
|
|
|
|
|
|
|
|
示例:
|
|
|
|
|
展览 福建 2
|
|
|
|
|
福建展览 2
|
|
|
|
|
全国展览
|
2024-08-15 21:33:20 +08:00
|
|
|
|
海外展览
|
|
|
|
|
|
|
|
|
|
※数据来源于哔哩哔哩会员购,由于API返回结果与实际存在差异,数据可能不准确。"""
|
2024-07-11 18:26:21 +08:00
|
|
|
|
__author__ = "Asankilp"
|
|
|
|
|
__plugin_meta__ = PluginMetadata(
|
|
|
|
|
name="漫展/展览查询",
|
|
|
|
|
description="从哔哩哔哩会员购获取简易展览数据",
|
2024-07-11 19:00:25 +08:00
|
|
|
|
usage=usage,
|
|
|
|
|
type="application",
|
2024-07-11 18:26:21 +08:00
|
|
|
|
config=ConfigModel,
|
|
|
|
|
homepage="https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow",
|
2024-07-11 19:00:25 +08:00
|
|
|
|
supported_adapters=inherit_supported_adapters("nonebot_plugin_alconna"),
|
2024-08-22 22:50:18 +08:00
|
|
|
|
# extra={"License":"MIT","Author":"Swankily"} snowykami的奇妙纠错(
|
|
|
|
|
extra={"License": "MIT", "Author": "Asankilp"},
|
2024-07-11 18:26:21 +08:00
|
|
|
|
)
|
|
|
|
|
driver = get_driver()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@driver.on_startup
|
|
|
|
|
async def _():
|
|
|
|
|
pass
|