diff --git a/docs/.vuepress/public/bots.json b/docs/.vuepress/public/bots.json index fadd0218..ea9a71a5 100644 --- a/docs/.vuepress/public/bots.json +++ b/docs/.vuepress/public/bots.json @@ -40,5 +40,11 @@ "desc": "猜一猜游戏、新闻一览、英文每日一词一短语等等,含一键启动及docker容器部署就绪", "author": "ffreemt", "repo": "https://github.com/ffreemt/koyeb-nb2" + }, + { + "name": "DicePP", + "desc": "TRPG骰娘, 带先攻, 查询等功能, 主要面向DND5E. 面对骰主推出的船新版本, 内置Windows/Linux详细部署指南以及方便的自定义骰娘方法, 从回复文本到查询资料库都可轻松配置~", + "author": "pear-studio", + "repo": "https://github.com/pear-studio/nonebot-dicepp" } ] \ No newline at end of file diff --git a/docs/.vuepress/public/plugins.json b/docs/.vuepress/public/plugins.json index 4060da07..6bb74a6a 100644 --- a/docs/.vuepress/public/plugins.json +++ b/docs/.vuepress/public/plugins.json @@ -318,5 +318,45 @@ "desc": "通过FlightRadar24查询航班信息", "author": "IronWolf-K", "repo": "https://github.com/IronWolf-K/nonebot_plugin_fr24" + }, + { + "id": "nonebot_plugin_heweather", + "link": "nonebot-plugin-heweather", + "name": "和风天气", + "desc": "获取和风天气信息并转换为图片", + "author": "kexue-z", + "repo": "https://github.com/kexue-z/nonebot-plugin-heweather" + }, + { + "id": "nonebot_plugin_autohelp", + "link": "nonebot-plugin-autohelp", + "name": "nonebot-plugin-autohelp", + "desc": "响应help/菜单/帮助(群消息或私信)并提供已载入插件的帮助信息(如命令名,aliases,模块文档)", + "author": "ffreemt", + "repo": "https://github.com/ffreemt/nonebot-plugin-autohelp" + }, + { + "id": "gugua_bot", + "link": "gugua_bot", + "name": "孤寡机器人", + "desc": "让你的孤寡朋友露出阳光的笑容", + "author": "Sclock", + "repo": "https://github.com/Sclock/gugua" + }, + { + "id": "bugu_bot", + "link": "bugu_bot", + "name": "布谷机器人", + "desc": "增进你和你单身朋友的友谊", + "author": "Sclock", + "repo": "https://github.com/Sclock/bugu_bot" + }, + { + "id": "nonebot_plugin_flexperm", + "link": "nonebot-plugin-flexperm", + "name": "nonebot-plugin-flexperm", + "desc": "精细化的 NoneBot 权限管理插件", + "author": "rmuchan", + "repo": "https://github.com/rmuchan/nonebot-plugin-flexperm" } -] +] \ No newline at end of file diff --git a/docs/api/adapters/feishu.md b/docs/api/adapters/feishu.md index 0da2dc15..7a655c14 100644 --- a/docs/api/adapters/feishu.md +++ b/docs/api/adapters/feishu.md @@ -31,6 +31,9 @@ sidebarDepth: 0 * `tenant_access_token` / `feishu_tenant_access_token`: 请求飞书 API 后返回的租户密钥 + * `is_lark` / `feishu_is_lark`: 是否使用Lark(飞书海外版),默认为 false + + # NoneBot.adapters.feishu.exception 模块 diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py index d513fb8c..5f11cf71 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py @@ -136,7 +136,10 @@ class Bot(BaseBot): @property def api_root(self) -> str: - return "https://open.feishu.cn/open-apis/" + if self.feishu_config.is_lark: + return "https://open.larksuite.com/open-apis/" + else: + return "https://open.feishu.cn/open-apis/" @classmethod def register(cls, driver: Driver, config: "Config"): diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/config.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/config.py index 853f553e..c7422a7d 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/config.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/config.py @@ -14,6 +14,8 @@ class Config(BaseModel): - ``encrypt_key`` / ``feishu_encrypt_key``: 飞书开放平台后台“事件订阅”处设置的 Encrypt Key - ``verification_token`` / ``feishu_verification_token``: 飞书开放平台后台“事件订阅”处设置的 Verification Token - ``tenant_access_token`` / ``feishu_tenant_access_token``: 请求飞书 API 后返回的租户密钥 + - ``is_lark`` / ``feishu_is_lark``: 是否使用Lark(飞书海外版),默认为 false + """ app_id: Optional[str] = Field(default=None, alias="feishu_app_id") app_secret: Optional[str] = Field(default=None, alias="feishu_app_secret") @@ -22,6 +24,7 @@ class Config(BaseModel): alias="feishu_verification_token") tenant_access_token: Optional[str] = Field( default=None, alias="feishu_tenant_access_token") + is_lark: Optional[str] = Field(default=False, alias="feishu_is_lark") class Config: extra = "ignore"