Skip to main content

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

Project description

nonebot-plugin-EnjoyAnimation

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

PS:

若插件版本为0.0.3及以下,手动删除bot根目录的animations.json,pic文件夹,User_setting.json

(若不想删除User_setting.json,可以升级插件后运行一遍bot,然后将根目录的User_setting.json剪切到bot根目录中的data目录)

更新插件

pip install --upgrade EnjoyAnimation

插件依赖

插件: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.4b1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

EnjoyAnimation-0.0.4b1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: EnjoyAnimation-0.0.4b1.tar.gz
  • Upload date:
  • Size: 9.4 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.4b1.tar.gz
Algorithm Hash digest
SHA256 1adb05519229f6004d7e44e8bf999ad5c8d5192088b90e033023ae584c85e6af
MD5 d1b281149917462b561ce62d2ff74ad5
BLAKE2b-256 2eab3484c22dec8b357f32ddda767c796f5345e827c0a3da78dfb17c8e081dec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for EnjoyAnimation-0.0.4b1-py3-none-any.whl
Algorithm Hash digest
SHA256 1576f9020b4ed80a076f848da9013cd30f317d055c29dc8ba16a53e8d6d970eb
MD5 ac17f38d8e554c1ebaaa49e06cec55f4
BLAKE2b-256 251f982b01ca53e6cd5a259e34fe7168f5b2a6f7812483a724dba97678fcb988

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