Skip to content
This repository was archived by the owner on Jun 14, 2025. It is now read-only.
Bot tame edited this page Jul 17, 2024 · 1 revision

配置内容

DISCORD_GUILD

你需要开启Discord的开发者模式获取服务器ID

填写需要转发的Discord服务器ID

如果你不知道怎么开启开发者模式,点我

DISCORD_GUILD="1234567890000000000000"

DISCORD_CHANNEL

你需要开启Discord的开发者模式获取频道ID

填写需要转发的Discord频道ID

如果你不知道怎么开启开发者模式,点我

DISCORD_CHANNEL="1234567890000000000000"

ONEBOT_CHANNEL

填写需要转发的QQ群号

ONEBOT_CHANNEL="123456789"

DATA_DIR (未测试)

修改数据文件默认存储路径,默认存在包安装目录下

DATA_DIR="./data/"

配置例子

# nonebot2默认配置
DRIVER=~fastapi+~httpx+~websockets

# nonebot_dcqq_relay_plugin配置
DISCORD_GUILD="1234567890000000000000"
DISCORD_CHANNEL="1234567890000000000000"
ONEBOT_CHANNEL="123456789"

# nonebot2 discord适配器设置
DISCORD_PROXY='http://127.0.0.1:8080'
DISCORD_BOTS='
[
  {
    "token": "xxxxx",
    "intent": {
      "guild_messages": true,
      "guild_message_reactions": true,
      "direct_messages": true,
      "direct_message_reactions": true,
      "message_content": true
    },
    "application_commands": {"*": ["*"]}
  }
]
'
Clone this wiki locally