mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:05:25 +08:00
commit
4f4a072dd7
@ -46,5 +46,11 @@
|
||||
"desc": "TRPG骰娘, 带先攻, 查询等功能, 主要面向DND5E. 面对骰主推出的船新版本, 内置Windows/Linux详细部署指南以及方便的自定义骰娘方法, 从回复文本到查询资料库都可轻松配置~",
|
||||
"author": "pear-studio",
|
||||
"repo": "https://github.com/pear-studio/nonebot-dicepp"
|
||||
},
|
||||
{
|
||||
"name": "SetuBot",
|
||||
"desc": "每个群配置文件独立,可以控制频率,socks http代理,R18开关,支持多tag,自建API lolicon Pixiv热度榜",
|
||||
"author": "yuban10703",
|
||||
"repo": "https://github.com/yuban10703/setu-nonebot2"
|
||||
}
|
||||
]
|
@ -358,5 +358,21 @@
|
||||
"desc": "精细化的 NoneBot 权限管理插件",
|
||||
"author": "rmuchan",
|
||||
"repo": "https://github.com/rmuchan/nonebot-plugin-flexperm"
|
||||
},
|
||||
{
|
||||
"id": "nonebot_plugin_epicfree",
|
||||
"link": "nonebot_plugin_epicfree",
|
||||
"name": "Epic 限免游戏资讯",
|
||||
"desc": "EpicGameStore 喜加一资讯插件,发送「喜加一」逝世看吧!",
|
||||
"author": "monsterxcn",
|
||||
"repo": "https://github.com/monsterxcn/nonebot_plugin_epicfree"
|
||||
},
|
||||
{
|
||||
"id": "ELF_RSS2",
|
||||
"link": "ELF-RSS",
|
||||
"name": "ELF_RSS",
|
||||
"desc": "QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub",
|
||||
"author": "Quan666",
|
||||
"repo": "https://github.com/Quan666/ELF_RSS"
|
||||
}
|
||||
]
|
@ -89,7 +89,7 @@ class MessageSegment(BaseMessageSegment["Message"]):
|
||||
proxy: bool = True,
|
||||
timeout: Optional[int] = None) -> "MessageSegment":
|
||||
if isinstance(file, BytesIO):
|
||||
file = file.read()
|
||||
file = file.getvalue()
|
||||
if isinstance(file, bytes):
|
||||
file = f"base64://{b64encode(file).decode()}"
|
||||
elif isinstance(file, Path):
|
||||
|
Loading…
Reference in New Issue
Block a user