Connect QQ
Use the agent in a familiar chat app through a OneBot V11 forward WebSocket.
QQ is Tencent's messaging app, widely used in China. ShiritaiBot connects to it through OneBot V11, an open protocol for chat bots. You need a OneBot client that signs in to the bot's QQ account, such as NapCat or SnowLuma; this guide uses NapCat. Using Feishu or Lark? See Connect Feishu.
Set up NapCat
Follow the NapCat docs to install it and sign in to the bot account. In its network settings, turn on a forward WebSocket server and set the address it listens on and an access token.
NapCat's docs are in Chinese; your browser's translate feature works well on them.
Add a connection
In the ShiritaiBot WebUI, open Connections → Add, choose QQ · OneBot V11, click Continue and fill in:
- Universal WebSocket URL, such as
ws://127.0.0.1:3001. - Bot QQ number and Owner QQ number.
- Access token, the same one you set in NapCat.
Turn on Enable connection, click Save and apply, and check the connection status on the Overview page. Then send /help to the bot from the owner's QQ account and check that the help menu comes back.