Skip to main content

NoneBot2 plugin for querying and uploading catcake records

Project description

nonebot-plugin-catcake

面向 NoneBot2 与 NoneBot 插件市场发布的猫猫糕查询/上传插件,用于查询 https://catcs.v6.army 提供的猫猫糕 API。

公开发布版已移除所有管理员指令、管理员删除接口调用与管理员密码配置,仅保留普通用户可用的查询、上传与个人设置功能。

安装

使用 NB-CLI 安装(推荐)

nb plugin install nonebot-plugin-catcake

使用 pip 安装

pip install nonebot-plugin-catcake

安装后,在 NoneBot 项目中加载插件:

nonebot.load_plugin("nonebot_plugin_catcake")

如果使用 pyproject.toml 管理 NoneBot 插件,也可以添加:

[tool.nonebot]
plugins = ["nonebot_plugin_catcake"]

配置

插件支持零配置加载;如需修改默认值,可在 .env 中配置:

CATCAKE_API_BASE=https://catcs.v6.army
CATCAKE_DEFAULT_SERVER=官服
CATCAKE_TIMEOUT=10
配置项 默认值 说明
CATCAKE_API_BASE https://catcs.v6.army 猫猫糕 API 基础地址。
CATCAKE_DEFAULT_SERVER 官服 查询指令未提供有效服务器时使用的默认服务器。
CATCAKE_TIMEOUT 10 HTTP 请求超时时间,单位为秒。

指令

指令 说明
搜索 <服务器> <猫糕名称> 返回匹配记录。默认每行格式:<UID> <猫糕1> <猫糕2> <猫糕3>
上传 <UID> <猫糕1> <猫糕2> <猫糕3> 按 UID 自动识别服务器并上传 3 个猫糕。
上传阿基喵利 <UID> 按 UID 自动识别服务器并上传当日阿基喵利 UID。
今日阿基喵利 <服务器> 返回指定服务器的当日阿基喵利 UID。
收录数量 返回本周收录数量。
设置 设置是否显示地点、是否过滤无地点记录、上传时是否选择地点。
cathelp 显示指令说明。

服务器参数支持:

  • 1:官服
  • 2:B服
  • 其他文本会按原值传递给 API

上传类指令会按 UID 首位自动识别服务器:

  • 1 开头:官服
  • 5 开头:B服

示例

搜索 1 薄荷提拉咪
上传 123456789 薄荷提拉咪 白玉青团 红豆牛奶
上传阿基喵利 123456789
今日阿基喵利 2
收录数量
设置

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

nonebot_plugin_catcake-1.0.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_catcake-1.0.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_catcake-1.0.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_catcake-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nonebot_plugin_catcake-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d3e227501ce258ee6f433ef06b69f15ce15bd3c7c391ffda6535230da0757af8
MD5 9f7945d483404cfbc2350e9786a373f4
BLAKE2b-256 d3e4a5793a854f1eb16c9d353ca6309dfc1e7689e6352f37d35c24e5d87f703f

See more details on using hashes here.

File details

Details for the file nonebot_plugin_catcake-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_catcake-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d7e4b62b81cef0d6d9e1237a15f59f4c5af2badcde86afc02c4eebb1fc91e0
MD5 84326d425d982b6eca65ce4f329dd9ed
BLAKE2b-256 4a3482d6d9cd5ac4acd6de619d116ce99a7d8797f25c0d8ff7d22b59b5938079

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