Repository navigation
📝 新增 Discord 适配器使用教程 - #101
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #101 +/- ##
=======================================
Coverage 77.88% 77.88%
=======================================
Files 41 41
Lines 7428 7428
Branches 381 381
=======================================
Hits 5785 5785
Misses 1539 1539
Partials 104 104
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
README 里原来的长示例拆成了
docs/下的分步教程。README 只保留安装方法和教程入口。configuration.md:创建机器人、安装驱动器、填写.env、启动,以及常见问题排查(代理、Interactions Endpoint URL、Message Content Intent)application-commands.md:写第一个斜杠命令、加参数、子命令和右键菜单命令、在application_commands里登记命令sending-messages.md:用send_deferred_response()处理超过 3 秒的操作,发文件、卡片和按钮,响应按钮点击,主动发消息,引用用户消息api-and-events.md:怎么查 Bot 方法的参数和返回值、请求失败时抛哪些异常、事件分类,以及常用方法和事件对照表只改了文档,代码没有变动。教程里的 Python 示例都通过了 Ruff 检查,并能作为 NoneBot 插件正常加载。
Closes #86