安装

mute.About 1 minAbout 326 words

下载

  • 使用 pip
pip install nonebot_plugin_xiuxian_2
  • 使用 nb-cli
nb plugin install nonebot_plugin_xiuxian_2
  • 使用 git
git clone https://github.com/QingMuCat/nonebot_plugin_xiuxian_2.git

使用镜像:git clone https://ghproxy.com/https://github.com/QingMuCat/nonebot_plugin_xiuxian_2

配置

资源文件

  1. 配置文件一般在 data/xiuxian 文件夹下,初次启动修仙插件时会自动生成一部分。修改配置只需修改json文件即可,任何修改都需要重启bot
  2. 除此之外,您还需要下载卡图open in new window,将解压后的卡图放置于 data/xiuxian 目录下

分控配置(可选)

若您有多个QQ机器人链接的需求,可以在 xiuxian_config.py 配置

self.put_bot = [] 
self.main_bo = []
self.shield_group = []
self.layout_bot_dict = {{}}

参数:

  • self.put_bot
    • 默认为空
    • 接收消息QQ,主QQ,插件将只处理此QQ的消息,不配置将默认设置第一个链接的QQ为主QQ
  • self.main_bo
    • 默认为空
    • 负责发送消息的QQ,调用 lay_out.py 下 range_bot函数 的情况下需要填写
  • self.shield_group
    • 默认为空
    • 参数:群号
    • 屏蔽的群聊
  • self.layout_bot_dict
    • 默认为空
    • 参数:{群 :bot}。其中 bot 类型为列表或字符串
    • QQ所负责的群聊
    • 例子:
        self.layout_bot_dict = {{
            "111": "xxx",               # 由QQ号为xxx的机器人单独负责111群聊
            "222": ["yyy", "zzz"]       # 由QQ号为yyy和zzz的机器人同时负责222群聊
        }}