-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
移除交互式管理中的ob11 #268
移除交互式管理中的ob11 #268
Conversation
✅ Deploy Preview for nonebot-bison ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #268 +/- ##
==========================================
- Coverage 81.52% 81.30% -0.23%
==========================================
Files 52 63 +11
Lines 3009 3150 +141
==========================================
+ Hits 2453 2561 +108
- Misses 556 589 +33
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
860459e
to
f52babd
Compare
if raw_id_text == "查询": | ||
url = "https://nonebot-bison.netlify.app/usage/#%E6%89%80%E6%94%AF%E6%8C%81%E5%B9%B3%E5%8F%B0%E7%9A%84-uid" | ||
msg = Text(url) | ||
try: | ||
from nonebot.adapters.onebot.v11 import MessageSegment | ||
|
||
title = "Bison所支持的平台UID" | ||
content = "查询相关平台的uid格式或获取方式" | ||
image = "https://s3.bmp.ovh/imgs/2022/03/ab3cc45d83bd3dd3.jpg" | ||
msg.overwrite( | ||
SupportedAdapters.onebot_v11, | ||
MessageSegment.share( | ||
url=url, title=title, content=content, image=image | ||
), | ||
) | ||
except ImportError: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里没有ob11的话输入查询
就没有消息回复了吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只会回复链接
|
||
|
||
@group_manage_matcher.handle() | ||
async def send_group_list(bot: Bot, event: PrivateMessageEvent, state: T_State): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉这个 Bot 可以从 v11 里面导入,毕竟都用上 PrivateMessageEvent 了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
未来要改成抽象的event,所以这里还是bot基类吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来是战未来(
f52babd
to
0af4435
Compare
0af4435
to
987aa0f
Compare
0aa99be
to
ba319c0
Compare
No description provided.