完成市场插件#633
Draft
This-is-XiaoDeng wants to merge 18 commits into
Draft
Conversation
Member
|
总感觉这插件还没写完……是不是缺了展示出售中的物品列表和命令帮助的用法提示(比如如何填写 price_diff) |
Member
Author
|
已基于此 PR 继续完善,新增了 命令和 用法说明,见 #1104 🐱 |
- Add 'market list [page]' to browse items on sale (10 per page) - Add detailed price_diff usage explanation in help - Update help.yaml with structured usages and category - Update __init__.py with proper description and usage
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 31 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
…argument order - Rename handler functions from _ to handle_market_main/sell/buy/list - Fix missing await on user.has_vimcoin in buy handler elif branch - Fix sell.done argument order: count, name, price - Fix buy.finish argument order: bought_count, name, used_vimcoin
- Remove unused datetime and Optional imports from models.py - Reorder sell handler count checks: negative → zero → exceeds stock (improves readability, same logical behavior)
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.
描述
新增一个 market 指令
TODO: