Skip to main content

Nonebot2插件,从哔哩哔哩会员购获取简易展览数据

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-acgnshow

✨ 从哔哩哔哩会员购获取展览简易信息 ✨

license pypi python

📖 介绍

一个简单的 Nonebot2 插件,可以从哔哩哔哩会员购 API 获取展览(漫展等)的时间,地点,票价等信息。

💿 安装

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

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

plugins = ["nonebot_plugin_acgnshow"]

🎉 使用

发送展览指令可以获取使用说明

⚙️ 配置

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

配置项 必填 默认值 说明
ACGNSHOW_PAGESIZE 10 单个图片的条目数,最大为 20,条目数过大可能导致 Bot 无法发送
ACGNSHOW_BGIMAGE_PATH 插件内置背景图 插件返回图片的背景图目录路径
ACGNSHOW_SEND_SHOW_DETAILS_HTML false 是否发送展览的 HTML 详情信息图片(会员购的“活动介绍”栏目),实验性功能
ACGNSHOW_SHOW_DETAILS_HTML_SCALE 0.6 HTML 详情信息图片的缩放比例,过大可能导致 Bot 无法发送
ACGNSHOW_SHOW_DETAILS_HTML_IMG_COUNT 2 每一张 HTML 详情信息图片中包含的图片个数,过大可能导致 Bot 无法发送

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_acgnshow-0.3.tar.gz (10.6 MB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_acgnshow-0.3-py3-none-any.whl (10.7 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_acgnshow-0.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_acgnshow-0.3.tar.gz
  • Upload date:
  • Size: 10.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nonebot_plugin_acgnshow-0.3.tar.gz
Algorithm Hash digest
SHA256 f4ed2f4e375554b6a1c4d033be8dc457cdc7fd38683556a94311d4fb2de54073
MD5 f73a94a5afee24aadf5bf3d1bd329d90
BLAKE2b-256 8979cd50ae2b859f79e318b49e6633f66ddce3baa18b145d00fe75e3cdd35c7b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_acgnshow-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_acgnshow-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 84bd801918b559664129e2a1f499ac0c7c547de7be43a2a12fa393b39c268dc4
MD5 3a2bc47d31adf14d7f558ee3f3457304
BLAKE2b-256 65ca70076e5a1b180a2fd2c57e4edde83bcf7c360dd7a389b092193c8fa2511d

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