Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

FDCraft/fdcraft-bot-qq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdcraft-bot-qq

为 FDCraft 打造的基于 Mirai 的 QQ 机器人

开始使用

yarn install

需要启动 mirai-api-http 并将 httpws 适配器设置为同一端口

请勿开启 singleMode !

请参考如下创建 config.jsonservers.json

config.json 模板

{
  mirai: {
    addr: "http://127.0.0.1:8080", // 你的 mirai-api-http 地址
    key: "ABCDEFGHIJKLMN", // 你的 mirai-api-http 中设置的 authKey
    qq: 123456789, // 机器人的 QQ 号
  },
  webhook: {
    path: "/webhook",
    port: 8855,
    secret: "YOURSECRET",
  },
  groups: [1234567890, 9876543210], // 允许使用机器人的 QQ 群号
}

servers.json 模板

服务器需开启 query 并启用 UDP

{
  servers: [
    {
      id: "fdc", // 代号
      name: "复读世界𒆙",
      host: "example.org",
      port: 25565, // query 端口
    },
    {
      id: "foo",
      name: "Example",
      host: "example.org",
      port: 11451,
    },
  ],
}

依赖

About

QQ Bot for FDCraft

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •