Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动后没有登录到QQ频道Bot #63

Closed
XTxiaoting14332 opened this issue Oct 9, 2023 · 6 comments
Closed

启动后没有登录到QQ频道Bot #63

XTxiaoting14332 opened this issue Oct 9, 2023 · 6 comments
Labels
question Further information is requested

Comments

@XTxiaoting14332
Copy link

在根据文档填写.env后,启动Bot没有显示登录信息,显示如下:

10-09 13:35:44 [DEBUG] nonebot | Succeeded to load adapter "QQ Guild"
10-09 13:35:44 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo"
10-09 13:35:44 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_jrrp2" from "src.plugins.nonebot_plugin_jrrp2"
10-09 13:35:44 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_localstore"
10-09 13:35:46 [DEBUG] nonebot_plugin_datastore | 创建数据库文件夹: /root/.local/share/nonebot2
10-09 13:35:46 [DEBUG] nonebot_plugin_datastore | 数据库连接地址: sqlite+aiosqlite:////root/.local/share/nonebot2/data.db
10-09 13:35:46 [DEBUG] nonebot_plugin_datastore | 数据库引擎参数: {'echo': False, 'echo_pool': False}
10-09 13:35:46 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_datastore"
10-09 13:35:47 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_saa"
10-09 13:35:47 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_emojimix"
10-09 13:35:47 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_session"
10-09 13:35:49 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_minesweeper"
10-09 13:35:49 [SUCCESS] nonebot | Running NoneBot...
10-09 13:35:49 [DEBUG] nonebot | Loaded adapters: OneBot V11, QQ Guild
10-09 13:35:49 [INFO] uvicorn | Started server process [1603389]
10-09 13:35:49 [INFO] uvicorn | Waiting for application startup.
10-09 13:35:49 [DEBUG] nonebot | QQ Guild | QQ Guild run in sandbox mode: False
10-09 13:35:49 [DEBUG] nonebot | QQ Guild | QQ Guild api base url: https://api.sgroup.qq.com/
10-09 13:35:50 [DEBUG] nonebot_plugin_datastore | 初始化插件 nonebot_plugin_session 的数据库
10-09 13:35:50 [INFO] nonebot_plugin_datastore | 数据库初始化完成
10-09 13:35:50 [INFO] uvicorn | Application startup complete.
10-09 13:35:50 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:8082 (Press CTRL+C to quit)``


.env中的内容:

ENVIRONMENT=dev
DRIVER=~fastapi+~httpx+~websockets+~aiohttp
QQ_BOTS='
[
  {
    "id": "隐藏",
    "token": "隐藏",
    "secret": "隐藏",
    "intent": {
      "guild_messages": true,
      "at_messages": false
    }
  }
]
'
@yanyongyu
Copy link
Member

你填写了QQ适配器的配置但是使用了频道适配器,请使用QQGUILD_BOTS或者更换qq适配器

@yanyongyu yanyongyu added the question Further information is requested label Oct 9, 2023
@XTxiaoting14332
Copy link
Author

解决了 谢谢
你的文档中频道示例写的是QQ_BOTS

@yanyongyu
Copy link
Member

你的文档中频道示例写的是QQ_BOTS

这是两个适配器

@Dreamail
Copy link
Contributor

Dreamail commented Oct 19, 2023

请问一下QQ群Bot已经可以使用了嘛

BTW readme里面的配置确实是两个都写的QQ_BOTS

@yanyongyu
Copy link
Member

qq群bot已经内测,如果你有资格现在就可以用

频道适配器配置项依然保持原样没有变过

image

@Dreamail
Copy link
Contributor

再好奇一下怎么获取资格(👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

3 participants