开始使用
使用pip安装:
pip install nonebot-plugin-kfcrazy
克隆本项目到本地,在bot.py中导入插件:
nonebot.load_plugin(r"包路径\nonebot_plugin_kfcrazy")
使用命令来触发
在有bot的群内发送/kfc开始查询肯德基的物品详情,流程:
1.输入/kfc以开始一个肯德基查询
2.输入[城市名]或[城市名] [地区(县)名],注意用空格分开
3.输入店铺关键词匹配店铺,可发送空格来获取当前地区部分结果
4.输入店铺前对应序号查询店铺内所有在售食品主题分类
5.输入主题分类对应序号,可查询食品详情信息
6.结束(finish)
在任意一个阶段中发送“退出”来中断一个查询流程。
TODO?
- 增加疯狂星期四查询命令
- 增加qq号绑定店铺一键查询
- 疯四文案与图片合成
- (待定)
效果展示
联系我
更新日志
2022.11.14 v2.0.5
修复当发送城市名中包含“市”字符时查询不到的问题
2022.11.12 v2.0.4
修复城市信息中可能的空字段
2022.10.20 v2.0.3
使用聊天记录转发形式展示结果,减少群消息资源占用
2022.10.20 v2.0.2
修复序号正则匹配问题,增加风控异常抛出
2022.10.6 v2.0.1
增加更精准的序号匹配规则,修复部分阶段退出命令无效的问题
2022.10.6 v2.0
重新编写查询逻辑与算法,使返回结果更全面,优化了查询速度,性能提升
2022.9.29 v1.0
最初版本,增加基本查询功能
Metadata
Release files for nonebot-plugin-kfcrazy 2.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-kfcrazy-2.0.5.tar.gz | 18.9 kB | Without provenance | Details for nonebot-plugin-kfcrazy-2.0.5.tar.gz |
Release files / nonebot-plugin-kfcrazy-2.0.5.tar.gz
| Download URL | nonebot-plugin-kfcrazy-2.0.5.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fad4ef5cc24252d58d5b80506e068d2da2af3364c42db68d78d8653f2c60857
|
|
BLAKE2b-256 checksum How to use checksums |
6711de709fb50ab2645dc5d5b9bc361bd335741666571c28fde45f070089d7a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for nonebot-plugin-kfcrazy 2.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.