Skip to content

完成市场插件#633

Draft
This-is-XiaoDeng wants to merge 18 commits into
mainfrom
feat/market
Draft

完成市场插件#633
This-is-XiaoDeng wants to merge 18 commits into
mainfrom
feat/market

Conversation

@This-is-XiaoDeng

@This-is-XiaoDeng This-is-XiaoDeng commented Aug 14, 2025

Copy link
Copy Markdown
Member
  • 此 Pull Requests 进行的更改已经过测试
  • 在合并前需要等待 CI 执行完成
  • 更改内容为紧急更新 (hotfix)

描述

新增一个 market 指令

TODO:

  • 本地化

@This-is-XiaoDeng This-is-XiaoDeng marked this pull request as draft August 14, 2025 13:47
@xxtg666

xxtg666 commented Oct 2, 2025

Copy link
Copy Markdown
Member

总感觉这插件还没写完……是不是缺了展示出售中的物品列表和命令帮助的用法提示(比如如何填写 price_diff)

@This-is-XiaoDeng

Copy link
Copy Markdown
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
@codacy-production

codacy-production Bot commented May 10, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 31 complexity

Metric Results
Complexity 31

View in Codacy

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.

Delta and others added 2 commits May 11, 2026 08:48
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants