DeltaForce游戏物品价格搜索插件
Project description
DeltaForce 物品价格搜索插件
一个用于搜索 DeltaForce 游戏中各种物品价格的 NoneBot2 插件,适用于QQ适配器。
功能特性
- 🔍 智能搜索:支持关键词搜索和分类搜索
- 📂 分类浏览:按物品分类查看所有物品
- 💰 价格查询:实时获取物品市场价格
- 🚀 缓存优化:本地缓存减少网络请求
- 📱 平台支持:基于 NoneBot2 框架,支qq官方适配器
安装方法
方法一:使用 pip 安装
pip install nonebot-plugin-deltaforce-price-search
配置说明
在 NoneBot2 的pyproject.toml文件中添加以下配置:
在dependencies = [...] 中添加:
"nonebot-plugin-deltaforce-price-search>=x.x.x" # 请替换为最新版本号
然后在[tool.nonebot.plugins] 添加:
"nonebot-plugin-deltaforce-price-search" = ["nonebot_plugin_deltaforce_price_search"]
数据配置项 - 可选
价格数据源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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_deltaforce_price_search-1.0.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_deltaforce_price_search-1.0.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c4642909823117e42b0a8027b020bc9bced96b59a78fa1275f4ba3fb73b151a
|
|
| MD5 |
041b5153b72a86bc4035005e4ffc5e53
|
|
| BLAKE2b-256 |
99eb6a0cf973a07fd890e7833d01fae9c817d5e7bbb1329dafa6dfc19c4f0460
|
File details
Details for the file nonebot_plugin_deltaforce_price_search-1.0.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_deltaforce_price_search-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4639f130208e0dcbf45e407be8b094c99a59ef2666c0395ec6cd14778500c3
|
|
| MD5 |
b1fa8dbabdd6bb9adb60031fee11133d
|
|
| BLAKE2b-256 |
c533ffb018b87c549a3cad503abb564d4c6b7c6c3751c16fb485a70d67fe64a5
|