maimaidx plugin for nonebot2
Project description
重要更新
温馨提示
首次使用请务必看完 README.MD 所有内容
- 不要再问为什么
资源文件的plate和rating文件夹是空的或缺少文件 - 不要再问为什么
资源文件的plate和rating文件夹是空的或缺少文件 - 不要再问为什么
资源文件的plate和rating文件夹是空的或缺少文件
安装
-
安装
nonebot-plugin-maimaidx- 使用
nb-cli安装nb plugin install nonebot-plugin-maimaidx
- 使用
pip安装pip install nonebot-plugin-maimaidx
- 使用源代码(不推荐) 需自行安装额外依赖
git clone https://github.com/Yuri-YuzuChaN/nonebot-plugin-maimaidx
- 使用
-
安装
chromium,相关依赖已安装,请直接使用该指令执行playwright install --with-deps chromium
-
安装
微软雅黑字体,解决使用ginfo指令字体不渲染的问题,例如ubuntu:apt install fonts-wqy-microhei
配置
-
下载静态资源文件,将该压缩文件解压,且解压完为文件夹
static -
在
.env文件中配置静态文件绝对路径MAIMAIDXPATHMAIMAIDXPATH=path.to.static # 例如 windows 平台,非 "管理员模式" 运行Bot尽量避免存放在C盘 MAIMAIDXPATH=D:\bot\static # 例如 linux 平台 MAIMAIDXPATH=/root/static
-
可选,如果拥有
diving-fish 查分器的开发者Token,请在.env文件中配置MAIMAIDXTOKENMAIMAIDXTOKEN=MAIMAITOKEN
-
可选,如果你的服务器或主机不能顺利流畅的访问查分器和别名库的API,请在
.env文件中配置代理。均为香港服务器代理中转,例如你的服务器访问查分器很困难,请设置MAIMAIDXPROBERPROXY为true,别名库同理# 查分器代理,推荐境外服务器使用 MAIMAIDXPROBERPROXY=false # 别名代理,推荐国内服务器使用 MAIMAIDXALIASPROXY=false
-
可选,是否开启别名推送,不需要请在
.env文件中配置MAIMAIDXALIASPUSH为false,注意,该配置为false时,将不会实时更新别名库,仅会在别名查歌或者跨日更新数据的时候才会更新别名库。如果群组的推送为开启状态,也不再进行推送,推送指令也一并失效MAIMAIDXALIASPUSH=false
-
可选,是否将部分图片在保存在内存中,不需要请在
.env文件中配置SAVEINMEM为falseSAVEINMEM=false
[!NOTE] 安装完插件需要使用定数表或完成表指令时,需私聊Bot使用
更新定数表和更新完成表进行生成
[!NOTE] 插件带有别名更新推送功能,默认开启全部群组推送,不需要请私聊Bot使用
全局关闭别名推送指令关闭所有群组推送。群组需要单独使用请使用指令开启别名推送。
指令
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_maimaidx-2.1.9.tar.gz.
File metadata
- Download URL: nonebot_plugin_maimaidx-2.1.9.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5f4a8d82e3bcd7d2fa7d4cddd44e0339b5b0caa331bfe9081bb02ceca83c9e6
|
|
| MD5 |
01d4af3a27d35b38561c385bc2167653
|
|
| BLAKE2b-256 |
badf8f39b0dc0092035fbbd8c37e345b9e9979c3b917744e0cc67fe4953272ee
|
File details
Details for the file nonebot_plugin_maimaidx-2.1.9-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_maimaidx-2.1.9-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
833c1e792298776f2340b8372ecb53e66460594515f4ea71a4bc0b12de387044
|
|
| MD5 |
f521d992635588c0cb56d64600a6b04c
|
|
| BLAKE2b-256 |
c6899f7dbc8d1930565618ebe4969055dc8a0e8cfd1a17f85faf0814a53a4613
|