Skip to main content

基于nonebot与gocqhttp的动漫番剧插件

Project description

nonebot-plugin-EnjoyAnimation

这是一个基于nonebot,gocqhttp的qq-bot动漫番剧插件

插件依赖

插件:nonebot-plugin-apscheduler nonebot-plugin-htmlrender

库:bs4 requests

安装插件

自动安装

安装此插件:

pip install EnjoyAnimation
(若镜像站没有则使用以下指令进行安装)
pip install --index-url https://pypi.org/simple EnjoyAnimation

安装第三方插件依赖: 请在bot根目录运行此指令

nb plugin install nonebot-plugin-apscheduler
nb plugin install nonebot-plugin-htmlrender

添加插件:

在pyproject.toml文件中将EnjoyAnimation添加进plugins中
plugins = ["EnjoyAnimation"]

手动安装

  1. 安装第三方库
pip install bs4
pip install requests
  1. 安装第三方插件

请在bot根目录运行此指令

nb plugin install nonebot-plugin-apscheduler
nb plugin install nonebot-plugin-htmlrender
  1. 安装此插件

EnjoyAnimation.py放在bot根目录\插件文件夹名(默认src)\plugins\下,进行本地加载,如未加载此插件,检查pyproject.toml文件中是否存在配置项,无则添加

plugin_dirs = ["src/plugins"]

配置插件

插件有三项必须配置项

配置文件为.env.X(默认为[初学者模式创建时].env.prof或者[插件作者创建时].env.dev,具体.env中可以修改)文件

animation_admin=123456789            #管理员qq号
animation_time= [8,30]               #订阅提醒时间,[0~23,0~59]
animation_default_return_img=false   #一些番剧信息是否以图片发送(配置为false时,检测到风控会自动以图片进行发送)

插件使用

    Commands:【可选参数】
    番剧帮助 (查看指令用法)
    番剧信息 (当前季度的番剧)
    番剧更新 (强制更新番剧信息)
    今日新番 (今日更新的番剧)
    新增订阅 (订阅=追番提醒)
    取消订阅 (取消追番提醒)
    ==================== 
    番剧查询 【番剧信息中的序号,如12 23 4 51这种数字列表】
    新增追番 【番剧信息中的序号,也支持数字列表】
    我的追番 (查看追番列表)
    取消追番 【追番中的番剧序号,支持数字列表】

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

EnjoyAnimation-0.0.4b0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

EnjoyAnimation-0.0.4b0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file EnjoyAnimation-0.0.4b0.tar.gz.

File metadata

  • Download URL: EnjoyAnimation-0.0.4b0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for EnjoyAnimation-0.0.4b0.tar.gz
Algorithm Hash digest
SHA256 711fb3584e5a74919d6ae4390e84f9156899e43126c6eb78d410b03b9f9eb309
MD5 cf17a670abaf6bf7c698de11d3ff624b
BLAKE2b-256 2e2c6331ab24f958fb2055d33814b9d7275668f2856b1c44b8b2135740beb6d2

See more details on using hashes here.

File details

Details for the file EnjoyAnimation-0.0.4b0-py3-none-any.whl.

File metadata

File hashes

Hashes for EnjoyAnimation-0.0.4b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b210bcea49e6426ed7d4ecb94aebb12b04a3969c18be0f1318e8f0be124fd2af
MD5 c96ac8d26ecbfc65b4ea595b3cb04c7c
BLAKE2b-256 c3d061a754ef0642a451661a8bbbb302d2faf63d16cec4799c1fbb5daebe5d8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page