Skip to main content

maimaidx plugin for nonebot2

Project description

python3 QQGroup License

重要更新

2025-08-16

  1. 修改别名推送机制,请各开发者进行取舍

    • 更新别名推送设置与指令,新增了 MAIMAIDXALIASPUSH 配置项,该设置将替代原先 group_alias_switch.json 文件的 global_switch 配置项
    • 当设置为false 时,不再连接别名推送服务器,如果群组的推送为开启状态,也不再进行推送,与原先一致申请的别名通过审核了也不再推送
    {
        "enable": [],
        "disable": [88888888],
        "global_switch": false      // 该配置项将被代替并删除
    }
    
    • 不会接收到别名申请以及别名通过的消息,如果服务器新增新的别名时无法实时获取最新的别名,仅能手动更新别名库
  2. 指令 全局开启/关闭别名推送 的功能将修改为开关全部群组的推送开关。

  3. 新增别名推送服务器代理地址,修改 .envMAIMAIDXALIASPROXY 配置项即可,其实是忘记添加代理地址

温馨提示

首次使用请务必看完 README.MD 所有内容

  • 不要再问为什么 资源文件platerating 文件夹是空的或缺少文件
  • 不要再问为什么 资源文件platerating 文件夹是空的或缺少文件
  • 不要再问为什么 资源文件platerating 文件夹是空的或缺少文件

安装

  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. 安装 chromium相关依赖已安装,请直接使用该指令执行

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

配置

  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 文件中配置代理。均为香港服务器代理中转,例如你的服务器访问查分器很困难,请设置 MAIMAIDXPROBERPROXYtrue,别名库同理

    # 查分器代理,推荐境外服务器使用
    MAIMAIDXPROBERPROXY=false
    # 别名代理,推荐国内服务器使用
    MAIMAIDXALIASPROXY=false
    
  5. 可选,是否开启别名推送,不需要请在 .env 文件中配置 MAIMAIDXALIASPUSHfalse注意,该配置为 false 时,将不会实时更新别名库,仅会在别名查歌或者跨日更新数据的时候才会更新别名库。如果群组的推送为开启状态,也不再进行推送,推送指令也一并失效

    MAIMAIDXALIASPUSH=false
    
  6. 可选,是否将部分图片在保存在内存中,不需要请在 .env 文件中配置 SAVEINMEMfalse

    SAVEINMEM=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.1.5.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.1.5-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_maimaidx-2.1.5.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.1.5.tar.gz
Algorithm Hash digest
SHA256 989b0ae991564b295b17e3e9be1d4b6235b4d9e2dfceb8e114a6cceb919da2bd
MD5 546723cf790edc611763070adb29bf05
BLAKE2b-256 d5e8b102a7d1743987e84175d743622b213b1a37058ac06911702004fed1cab4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_maimaidx-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5cc95d17526d9a6cc787ab3ad6ad894dda02acf6f2b0109df5bed59a13d4f438
MD5 e38d0e01d3daafd4e7e0dad7efa72851
BLAKE2b-256 b0dabfd8ab153b4d22ef1f5d98523272aa30b1e7b516d6e4583459bc21543105

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