a qqbot tool based on go-cqhttp
npm install mqbotnpm install mqbot
js
const Bot = require("mqbot");
let bot = new Bot({
port:8080
});
bot.on("message",(data)=>{
let message = data.message;
if(message == "ping") bot.reply(data,"pong!");
});
`
Config
let bot = new Bot(config);
|Key|Value|Default|
|----|----|----|
|address|go-cqhttp中WebSocket的地址|"ws://0.0.0.0"|
|port|go-cqhttp中WebSocket的端口|8080|
|whiteUserList|用户白名单,空列表表示不启用|[]|
|whiteGroupList|群组白名单,空列表表示不启用|[]|
|blackUserList|用户黑名单|[]|
|blackGroupList|群组黑名单|[]`|