• Stars
    star
    205
  • Rank 190,141 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

NoneBot2 QQ 适配器 / QQ adapter for nonebot2

nonebot-adapter-qq

NoneBot-Adapter-QQ

✨ QQ 协议适配 ✨

配置

修改 NoneBot 配置文件 .env 或者 .env.*

Driver

参考 driver 配置项,添加 HTTPClientWebSocketClient 支持。

如:

DRIVER=~httpx+~websockets
DRIVER=~aiohttp

QQ_IS_SANDBOX

是否为沙盒模式,默认为 False

QQ_IS_SANDBOX=true

QQ_BOTS

配置机器人帐号 id token secret,intent 需要根据机器人类型以及需要的事件进行配置。

Intent

以下为所有 Intent 配置项以及默认值:

{
  "guilds": true,
  "guild_members": true,
  "guild_messages": false,
  "guild_message_reactions": true,
  "direct_message": false,
  "open_forum_event": false,
  "audio_live_member": false,
  "c2c_group_at_messages": false,
  "interaction": false,
  "message_audit": true,
  "forum_event": false,
  "audio_action": false,
  "at_messages": true
}

示例

私域频道机器人示例

QQ_BOTS='
[
  {
    "id": "xxx",
    "token": "xxx",
    "secret": "xxx",
    "intent": {
      "guild_messages": true,
      "at_messages": false
    }
  }
]
'

公域群机器人示例

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

More Repositories

1

nonebot2

跨平台 Python 异步聊天机器人框架 / Asynchronous multi-platform chatbot framework written in Python
Python
5,724
star
2

nonebot

基于 OneBot 标准的 Python 异步 QQ 机器人框架 / Asynchronous QQ robot framework based on OneBot for Python
Python
2,098
star
3

aiocqhttp

A Python SDK with async I/O for CQHTTP (OneBot).
Python
272
star
4

awesome-nonebot

NoneBot 相关资源汇总
164
star
5

nb-cli

NoneBot2 脚手架 / CLI for NoneBot2
Python
155
star
6

adapter-red

NoneBot2 基于 Red 协议 的 QQNT 适配器
Python
125
star
7

adapter-satori

NoneBot2 Satori 适配器 / Satori Protocol adapter for nonebot2
Python
82
star
8

plugin-apscheduler

APScheduler Support for NoneBot2
Python
77
star
9

plugin-alconna

强大的 Nonebot2 命令匹配拓展,支持富文本/多媒体解析,跨平台消息收发
Python
71
star
10

adapter-onebot

NoneBot2 OneBot 适配器 / OneBot adapter for nonebot2
Python
67
star
11

adapter-telegram

NoneBot2 Telegram适配器 / Telegram Adapter for NoneBot2
Python
50
star
12

discussions

NoneBot 论坛
49
star
13

plugin-test

Test frontend for nonebot v2+
Vue
47
star
14

cli-plugin-webui

Web UI for NoneBot CLI
Vue
43
star
15

adapter-console

NoneBot2 终端适配器 / Console adapter for nonebot2
Python
32
star
16

plugin-orm

SQLAlchemy support for NoneBot2
Python
30
star
17

nonebug

NoneBot2 测试框架 / NoneBot2 test framework
Python
27
star
18

adapter-feishu

NoneBot2 飞书适配器 / FeiShu (LarkSuite) adapter for nonebot2
Python
26
star
19

noneprompt

Prompt toolkit for console interaction (support async, typing)
Python
25
star
20

nonebot2-tutorial

tutorial for nonebot2
23
star
21

registry

NoneBot 插件商店测试
Vue
22
star
22

plugin-filehost

NoneBot2 的 HTTP 静态文件托管插件,为跨机文件传输提供解决方案 / Effortless static file hosting plugin for NoneBot2.
Python
19
star
23

docusaurus-theme-nonepress

TypeScript
19
star
24

adapter-discord

NoneBot2 Discord 适配器 / Discord adapter for nonebot2
Python
19
star
25

plugin-localstore

Local Storage Support for NoneBot2
Python
17
star
26

noneflow

NoneBot workflow management bot built with NoneBot
Python
17
star
27

adapter-github

GitHub adapter for nonebot2
Python
13
star
28

plugin-status

Python
12
star
29

cli-plugin-docker

docker support for nb-cli
Python
11
star
30

nonemoji

Python
11
star
31

nonetrip

一个提供NoneBot1兼容层的NoneBot2插件
Python
10
star
32

nonechat

通用控制台聊天界面
Python
9
star
33

adapter-dodo

NoneBot2 DoDo 适配器 / DoDo adapter for nonebot2
Python
8
star
34

nb-autodoc

Python API documentation tool supporting the modern PEPs and typing features.
Python
8
star
35

nonecorn

ASGI server that forked from hypercorn, with extra features beyond asgi spec
Python
6
star
36

adapter-kritor

NoneBot2 Kritor 协议适配器 / Kritor Protocol adapter for nonebot2
Python
6
star
37

plugin-sentry

Sentry Support for NoneBot2
Python
5
star
38

nonebot-anime

Bilibili番剧查询
Python
4
star
39

nonebot-alarm

自然语言定时提醒nonebot插件
Python
3
star
40

adapter-mirai

Mirai Api HTTP adapter for nonebot2
Python
3
star
41

noneblockly

Craft NoneBot plugins with ease: Embrace low-code development through Blockly.
TypeScript
3
star
42

nonebot-talk

NoneBot 研讨会演示内容归档
Vue
2
star
43

auto-changelog

Python
2
star
44

nonebot-tuling

NoneBot 图灵机器人插件
Python
2
star
45

homepage

JavaScript
1
star
46

adapter-ding

Ding adapter for nonebot2
Python
1
star
47

vuepress-theme-nonebot

Vue
1
star