📖 介绍
配合 quark-auto-save 使用, 快速添加 quark 自动转存任务
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-quark-autosave --upgrade
使用 pypi 源安装
nb plugin install nonebot-plugin-quark-autosave --upgrade -i "https://pypi.org/simple"
使用清华源安装
nb plugin install nonebot-plugin-quark-autosave --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令uv
uv add nonebot-plugin-quark-autosave
安装仓库 master 分支
uv add git+https://github.com/fllesser/nonebot-plugin-quark-autosave@master
pdm
pdm add nonebot-plugin-quark-autosave
安装仓库 master 分支
pdm add git+https://github.com/fllesser/nonebot-plugin-quark-autosave@master
poetry
poetry add nonebot-plugin-quark-autosave
安装仓库 master 分支
poetry add git+https://github.com/fllesser/nonebot-plugin-quark-autosave@master
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_quark_autosave"]
使用 nbr 安装(使用 uv 管理依赖可用)
nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2
nbr plugin install nonebot-plugin-quark-autosave
使用 pypi 源安装
nbr plugin install nonebot-plugin-quark-autosave -i "https://pypi.org/simple"
使用清华源安装
nbr plugin install nonebot-plugin-quark-autosave -i "https://pypi.tuna.tsinghua.edu.cn/simple"
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| qas_endpoint | 否 | "http://127.0.0.1:5005" | quark-auto-save 的地址 |
| qas_token | 是 | 无 | 从 quark-auto-save webui 系统配置下拉 API 处获取 |
| qas_path_base | 否 | "夸克自动转存" | 自动转存文件夹的名称 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| qas | 主人 | 否 | 私聊 | 添加自动转存任务 |
| qas.run | 主人 | 否 | 私聊 | 运行自动转存任务(不指定索引则运行所有任务) |
| qas.list | 主人 | 否 | 私聊 | 查看自动转存任务列表 |
| qas.del | 主人 | 否 | 私聊 | 指定索引(从 qas.list 中获取)删除自动转存任务 |
🫙 容器
- TELEGRAM_BOT_TOKEN: 机器人 token 获取方式: @BotFather
- SUPERUSER: 超级用户 ID 获取方式: @userinfobot
docker run -d \
--name quark-bot \
-e PORT=8080 \
-e SUPERUSER=1234567890 \
-e TELEGRAM_BOT_TOKEN=bot_token \
-e QAS_ENDPOINT=http://debian:5005 \
-e QAS_TOKEN=3237101899 \
--restart unless-stopped \
--network bridge \
ghcr.io/fllesser/quarkbot:latest
单独使用
services:
nonebot:
image: ghcr.io/fllesser/quarkbot:latest
container_name: quark-bot
environment:
PORT: 8080
SUPERUSER: 1234567890
TELEGRAM_BOT_TOKEN: bot_token
QAS_ENDPOINT: http://quark-auto-save:5005
QAS_TOKEN: 1234567890 # 前往 quark-auto-save webui 系统配置下拉 API 处获取
restart: unless-stopped
network_mode: bridge
quark-auto-save, smartstrm, emby-server, quarkbot 配套 compose.yml 前往 compose.yml
Metadata
Release files for nonebot-plugin-quark-autosave 0.1.9
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_quark_autosave-0.1.9.tar.gz | 9.3 kB | With provenance | Details for nonebot_plugin_quark_autosave-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl |
Total release size: 20.1 kB
Release files / nonebot_plugin_quark_autosave-0.1.9.tar.gz
| Download URL | nonebot_plugin_quark_autosave-0.1.9.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d894577c5d520be6de1f93de1e604b2279da04f89cd5961aefabb9235644b233
|
|
BLAKE2b-256 checksum How to use checksums |
a0f2a6af6a46b1feacfc2d67d534925d9a07d7d6a5b578133f22aca06b4b8eda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.
Transparency logRelease files / nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl
| Download URL | nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0d0fb77f588448276c443da81621968acb7d71981d9655b3ad18e5c5fc832e9
|
|
BLAKE2b-256 checksum How to use checksums |
ede5121c86bd38f1b5e6783d76b74aa57e52fd11065ca3b3d4dd338a83b565ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.
Transparency logSecurity for nonebot-plugin-quark-autosave 0.1.9
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nonebot_plugin_quark_autosave-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.
Transparency logA 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.