cqhttp-bot
使用正向 websocket 的 cqhttp bot
使用
// echo bot
import {QBot} from 'https://cdn.jsdelivr.net/gh/coolrc136/cqhttp-bot@main/deno_dist/mod.ts'
const bot = new QBot("ws://111.111.111.111:6700?access_token=123456")
bot.onmessage(msg=> {
bot.send(JSON.stringify(
msg.quick_reply(msg.message)
)
)
})
bot.run()
更多用法请参考 demo.ts