Add command spy SC Task

This commit is contained in:
7cc5c4f330d47060 2024-07-17 10:20:32 -04:00
parent 7b3e194096
commit 69f9bcf90f

16
plugins/sc_cspy.js Executable file
View file

@ -0,0 +1,16 @@
module.exports={
load:()=>{
},
loadBot:(b)=>{
b.add_sc_task("cspy","/cspy on", true)
b.on('plainchat', (msg) => {
if (msg == "Successfully disabled CommandSpy") {
b.sc_tasks["cspy"].failed = 1
} else if (msg == "Successfully enabled CommandSpy") {
b.sc_tasks["cspy"].failed = 0
}
})
}
}