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

Feature: 支持为机器人配置代理 #99

Closed
wants to merge 2 commits into from

Conversation

Ainierheokami
Copy link

关于IP白名单

目前新上线机器人将强制使用ip白名单,如需使用代理ip可配置 proxy , 驱动器选择 aiohttp

公域群机器人使用代理示例

QQ_BOTS='
[
  {
    "id": "xxx",
    "token": "xxx",
    "secret": "xxx",
    "intent": {
      "c2c_group_at_messages": true
    },
    "proxy": "xxx",
  }
]
'

Ainierheokami and others added 2 commits January 12, 2024 02:37
	modified:   nonebot/adapters/qq/adapter.py
	modified:   nonebot/adapters/qq/config.py
@yanyongyu
Copy link
Member

代理你可以通过环境变量来配置

@Ainierheokami
Copy link
Author

Member

实测环境变量无法生效,而且多个官方机器人存在早创的不需要代理,新创的需要代理。

mstsc_fzeNaD2YzH
mstsc_dnMYJl1zyS

@yanyongyu yanyongyu added the invalid This doesn't seem right label Jan 13, 2024
@yanyongyu yanyongyu closed this Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Development

Successfully merging this pull request may close these issues.

2 participants