@satorijs/adapter-qq
Setup
- Go to QQ Open Platform and register an account
- Create a bot application in "Application Management"
- Obtain the AppID, Token, and Secret
- Use the above information as your bot configuration
Configuration
options.id
- Type:
string
The bot ID (AppID).
options.secret
- Type:
string
The bot secret (AppSecret).
options.token
- Type:
string
The bot token (Token).
options.type
- Values: private, public
The bot type. private for private bots, public for public bots.
options.protocol
- Values: websocket, webhook
The protocol type to use.
options.sandbox
- Type:
boolean - Default:
false
Whether to enable sandbox mode.
options.endpoint
- Type:
string - Default:
'https://api.sgroup.qq.com/'
The server address to connect to.
options.authType
- Type:
'bot' | 'bearer' - Default:
'bearer'
The authentication method.
options.intents
- Type:
number
Gateway intents to subscribe to.