Add plain chat event

This commit is contained in:
7cc5c4f330d47060 2024-07-17 10:16:59 -04:00
parent 6920625109
commit 7b3e194096

View file

@ -51,6 +51,7 @@ module.exports={
})
b.on("chat",(data)=>{
const msg=parse(data.json);
b.emit("plainchat",msg[1])
console2.write(`[${b.id}] [${data.type}] `+msg[0])
let fullCommand = data.message;