Skip to main content

DeltaForce游戏物品价格搜索插件

Project description

DeltaForce 物品价格搜索插件

一个用于搜索 DeltaForce 游戏中各种物品价格的 NoneBot2 插件,适用于QQ适配器。

功能特性

  • 🔍 智能搜索:支持关键词搜索和分类搜索
  • 📂 分类浏览:按物品分类查看所有物品
  • 💰 价格查询:实时获取物品市场价格
  • 🚀 缓存优化:本地缓存减少网络请求
  • 📱 平台支持:基于 NoneBot2 框架,支qq官方适配器

安装方法

方法一:使用 pip 安装

pip install nonebot-plugin-deltaforce-price-search

配置说明

在 NoneBot2 的配置文件中添加以下配置:

价格数据源URL(可选)
price_data_url: [感谢大佬的数据](https://raw.githubusercontent.com/orzice/DeltaForcePrice/master/price.json)
缓存文件路径(可选)
cache_file: "bullet_price_cache.json"
缓存过期时间(秒,可选)
cache_expire: 3600

使用方法

搜索命令:
--------------------------------------
搜索 [关键词] # 搜索物品(如:搜索 M4)
搜索 [分类] [关键词] # 在指定分类中搜索(如:搜索 头盔 三级)
search [keyword] # 英文搜索命令
物品搜索 [关键词] # 完整命令
查价 [关键词] # 简写命令

分类命令:
-------------------------------
分类 # 显示所有可用分类
分类 [分类名] # 查看指定分类的所有物品
category [category_name] # 英文分类命令
物品分类 [分类名] # 完整命令

帮助命令:
-------------------------
搜索帮助 # 显示详细使用说明
searchhelp # 英文帮助命令
物品搜索帮助 # 完整帮助命令
救命 # 紧急帮助

支持的主要分类

分类 关键词 示例物品
🔫 枪械 步枪、手枪、冲锋枪等 M4A1、AK47、沙漠之鹰
⛑️ 头盔 头盔 三级头盔、战术头盔
🛡️ 护甲 护甲、背心、防弹衣 三级甲、防弹背心
🔧 配件 配件、瞄具、枪口等 红点瞄具、消音器、扩容弹匣
💥 子弹 子弹、弹药 5.56mm、7.62mm
💎 收集品 收集品、稀有物品 金条、古董
🏥 消耗品 医疗、药品、食物 医疗包、绷带、能量饮料
🔑 钥匙 钥匙、门卡 仓库钥匙、门禁卡

依赖要求

  • Python 3.9+
  • NoneBot2 2.4.4+
  • nonebot-adapter-qq 1.6.5+
  • httpx 0.28.1+
  • pydantic 1.10.0+

数据来源

物品价格数据来源于 DeltaForce 游戏社区,通过以下URL获取: https://raw.githubusercontent.com/orzice/DeltaForcePrice/master/price.json

问题反馈

如果您在使用过程中遇到任何问题或有改进建议,请通过以下方式联系:

许可证

本项目采用 MIT 许可证,详见 LICENSE 文件。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_deltaforce_price_search-1.0.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_deltaforce_price_search-1.0.1.tar.gz
Algorithm Hash digest
SHA256 acfea054b584ad7c5882881039883b99c08da66252b156b4af7e84c3a71b6373
MD5 cf13a3535703f5987ca42f4ea141a862
BLAKE2b-256 0d82d7d06a7fd05c90c13c5420b5f565a38afb66427f8aab13c1f4540cf03438

See more details on using hashes here.

File details

Details for the file nonebot_plugin_deltaforce_price_search-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_deltaforce_price_search-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97cfe90ee17dadc92fb9ee671004124b748b2b4452e6882d9f3c27c3610131c4
MD5 3ae4b831532abab34b6c9bbd260337fa
BLAKE2b-256 e4988209e7503a1b3ba0b91fcaee34320740fc6e3c089f79163e7bc930c5c811

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page