Skip to main content

配合 quark-auto-save(https://github.com/Cp0204/quark-auto-save) 使用, 支持添加,删除,列出,运行任务

Project description

logo

✨ nonebot-plugin-quark-autosave ✨


📖 介绍

配合 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

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_quark_autosave-0.1.9.tar.gz (9.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_quark_autosave-0.1.9-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_quark_autosave-0.1.9.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_quark_autosave-0.1.9.tar.gz
Algorithm Hash digest
SHA256 d894577c5d520be6de1f93de1e604b2279da04f89cd5961aefabb9235644b233
MD5 ddba32a652d2f4fb143734048ccf979d
BLAKE2b-256 a0f2a6af6a46b1feacfc2d67d534925d9a07d7d6a5b578133f22aca06b4b8eda

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_quark_autosave-0.1.9.tar.gz:

Publisher: release.yml on fllesser/nonebot-plugin-quark-autosave

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d0fb77f588448276c443da81621968acb7d71981d9655b3ad18e5c5fc832e9
MD5 b68bc294ca170cc691dbc3ec1267b998
BLAKE2b-256 ede5121c86bd38f1b5e6783d76b74aa57e52fd11065ca3b3d4dd338a83b565ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_quark_autosave-0.1.9-py3-none-any.whl:

Publisher: release.yml on fllesser/nonebot-plugin-quark-autosave

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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