Skip to main content

maimaidx plugin for nonebot2

Project description

python3 QQGroup License

重要更新

2025-03-28

[!WARNING] 对于这个版本之前的插件和修改版的插件请注意,预更新版本别名库将全部更换成新的 API 地址,返回的数据结构均更改,目前旧版 API 将再运行一段时间,预计正式更新 舞萌DX2025 时将会关闭

  1. 预更新 舞萌DX2025 UI,资源全部更换,更新部分依赖和文件,请重新进行安装

安装

  1. 安装 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
      
  2. 安装 PhantomJS,前往 https://phantomjs.org/download.html 下载对应平台支持

  3. 安装 微软雅黑 字体,解决使用 ginfo 指令字体不渲染的问题,例如 ubuntuapt install fonts-wqy-microhei

[!WARNING] 未配置 PhantomJS 支持的Bot,在使用 ginfo 指令时会被强制关闭 Bot 进程

配置

  1. 下载静态资源文件,将该压缩文件解压,且解压完为文件夹 static

  2. .env 文件中配置静态文件绝对路径 MAIMAIDXPATH

    MAIMAIDXPATH=path.to.static
    
    # 例如 windows 平台,非 "管理员模式" 运行Bot尽量避免存放在C盘
    MAIMAIDXPATH=D:\bot\static
    # 例如 linux 平台
    MAIMAIDXPATH=/root/static
    
  3. 可选,如果拥有 diving-fish 查分器 的开发者 Token,请在 .env 文件中配置 MAIMAIDXTOKEN

    MAIMAIDXTOKEN=MAIMAITOKEN
    
  4. 可选,如果你的服务器或主机不能顺利流畅的访问查分器和别名库的API,请在 .env 文件中配置代理。均为香港服务器代理中转,例如你的服务器访问查分器很困难,请设置 MAIMAIDXPROBERPROXYture,别名库同理

    # 查分器代理,推荐境外服务器使用
    MAIMAIDXPROBERPROXY=false
    # 别名代理,推荐国内服务器使用
    MAIMAIDXALIASPROXY=false
    

[!NOTE] 安装完插件需要使用定数表或完成表指令时,需私聊Bot使用 更新定数表更新完成表 进行生成

[!NOTE] 插件带有别名更新推送功能,如果不需要请私聊Bot使用 全局关闭别名推送 指令关闭所有群组推送

指令

img

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_maimaidx-2.0.4.tar.gz (1.0 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_maimaidx-2.0.4-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_maimaidx-2.0.4.tar.gz.

File metadata

  • Download URL: nonebot_plugin_maimaidx-2.0.4.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

Hashes for nonebot_plugin_maimaidx-2.0.4.tar.gz
Algorithm Hash digest
SHA256 f4959513d6b54ad1217bcb4b32b73920a42ec303b6a4698b5fb76074b7b6c707
MD5 2691032d5d438b4c4ed4d987ba123a92
BLAKE2b-256 9e412249b3763d8dd66688e55d02257e35ec6ec0f3d866c46ca031e2e8b9e348

See more details on using hashes here.

File details

Details for the file nonebot_plugin_maimaidx-2.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_maimaidx-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ea78b0e9236005f1a819b7626eab7924a39130acb0ee87213a6785c155ed4884
MD5 483f8c9b01b535aa9769d1d4e52d66b6
BLAKE2b-256 15c8b158030448d0dbe424f79a95ecf227423952f63074e20bd83ceec574a2c6

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