Skip to content
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

适配 DoDo #114

Merged
merged 6 commits into from
Nov 17, 2023
Merged

适配 DoDo #114

merged 6 commits into from
Nov 17, 2023

Conversation

AzideCupric
Copy link
Contributor

#112

不想写单测呜呜

Copy link

netlify bot commented Nov 13, 2023

Deploy Preview for send-anything-anywhere ready!

Name Link
🔨 Latest commit cea52e4
🔍 Latest deploy log https://app.netlify.com/sites/send-anything-anywhere/deploys/65559fd6d873d30008d163e1
😎 Deploy Preview https://deploy-preview-114--send-anything-anywhere.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (b6013fa) 95.26% compared to head (cea52e4) 95.74%.
Report is 3 commits behind head on main.

Files Patch % Lines
nonebot_plugin_saa/adapters/dodo.py 98.40% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   95.26%   95.74%   +0.47%     
==========================================
  Files          23       24       +1     
  Lines        1522     1670     +148     
==========================================
+ Hits         1450     1599     +149     
+ Misses         72       71       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

.gitignore Outdated Show resolved Hide resolved
nonebot_plugin_saa/adapters/dodo.py Outdated Show resolved Hide resolved
@felinae98
Copy link
Collaborator

update 一下文档和 readme

@AzideCupric
Copy link
Contributor Author

update 一下文档和 readme

加了

| 开黑啦私聊/频道 | | | | ✅ | | | | |
| Telegram 普通对话/频道 | | | | | ✅ | | | |
| 飞书私聊/群聊 | | | | | | ✅ | | |
| DoDo 私聊/群聊 | | | | | | | | ✅ |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

私聊的 TODO 是啥

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

啥?

@register_list_targets(adapter)
async def list_targets(bot: BaseBot) -> List[PlatformTarget]:
assert isinstance(bot, BotDodo)
targets = []
for island in await bot.get_island_list():
for channel in await bot.get_channel_list(
island_source_id=island.island_source_id
):
targets.append(TargetDoDoChannel(channel_id=channel.channel_id))
# TODO: 私聊
return targets

这个是 auto_select_bot 的

@felinae98 felinae98 changed the title ✨ 适配 DoDo 适配 DoDo Nov 17, 2023
@felinae98 felinae98 added the feature new feature label Nov 17, 2023
@felinae98 felinae98 merged commit 9ce6627 into main Nov 17, 2023
19 checks passed
@felinae98 felinae98 deleted the adapter/dodo branch November 17, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants