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请求的超时值

🕹️ 使用

在第二次及以上的时候分享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.1.tar.gz (5.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.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_bili_share_keeper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 46320685b34b898fd58700c312046568bae577a0cec507f402c66f81f2ba47e6
MD5 0a0bbc13c5c9f438a542b6373866c920
BLAKE2b-256 551d06f6d69a7f3c8059b6cf64b34808944d2bea29073e62b451e837d5df80f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_bili_share_keeper-0.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_bili_share_keeper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 535383c8c098a9f8cc145b93d35734ba3f0ac72275531c370f2782a0050e37e8
MD5 43474a1e6ba7e9b8d8c64305093bc18c
BLAKE2b-256 1514aec207699ec07df752de97b31f0f8c48a6c00f7eeaa7b8b2e3235347bed2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_bili_share_keeper-0.0.1-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