Skip to main content

记录b站视频链接分享,并提示多次分享

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-bili-share-keeper

✨ 记录b站视频链接分享,并提示多次分享 ✨

GitHub stars license pypi python

📖 介绍

记录b站视频链接分享,并提示多次分享

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-bili-share-keeper
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-bili-share-keeper
pdm
pdm add nonebot-plugin-bili-share-keeper
poetry
poetry add nonebot-bili-share-keeper
conda
conda install nonebot-bili-share-keeper

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_bili-share-keeper"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
bilibili_share_keeper_redis_url redis://localhost:6379/0 redis数据库地址,不填或不可用时自动退回内存存储
bilibili_share_keeper_target_group 开启此插件的群聊,支持单个群号或多个群号
bilibili_share_keeper_key_prefix nb2:bili_share_keeper redis中记录的前缀
bilibili_share_keeper_http_timeout 10 http请求的超时值

bilibili_share_keeper_target_group 配置示例

支持以下形式:

# 单个群
bilibili_share_keeper_target_group=123456

# 多个群(推荐 JSON 数组)
bilibili_share_keeper_target_group=[123456, 234567, 345678]

# 多个群(逗号分隔)
bilibili_share_keeper_target_group=123456,234567,345678

🕹️ 使用

在第二次及以上的时候分享B站链接视频会出现“此视频已于{datetime}被群友{群友名称}分享过,这是第{分享次数}次被分享”

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_bili_share_keeper-0.0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file nonebot_plugin_bili_share_keeper-0.0.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_bili_share_keeper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 edac13b87415246b026b7149448a7d4a33a3b204e91e0945179c184385bc3d88
MD5 e78319a1b2f8e163961e8308116b46d7
BLAKE2b-256 26001660e9e8e550008409f7b86e56d20c1f8d21203352ea0d629065d4fdbc85

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_bili_share_keeper-0.0.2.tar.gz:

Publisher: pypi-publish.yml on QianQiuZy/nonebot-plugin-bili-share-keeper

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_bili_share_keeper-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_bili_share_keeper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ebc9e617f1dcba75b0e6d80c140b50bef3e22fd189b906cc23b3f0bc0e33ca7
MD5 5d2bd7a3683ebbf1b91bfc4efa310f22
BLAKE2b-256 73acf6a3ce6302302c64f0e5f522935ba3c1b732a287d0d0f9bc2361a02025bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_bili_share_keeper-0.0.2-py3-none-any.whl:

Publisher: pypi-publish.yml on QianQiuZy/nonebot-plugin-bili-share-keeper

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