2024-07-17 10:20:32 -04:00
|
|
|
|
|
|
|
module.exports={
|
|
|
|
load:()=>{
|
|
|
|
|
|
|
|
},
|
|
|
|
loadBot:(b)=>{
|
2024-07-17 19:02:06 -04:00
|
|
|
b.add_sc_task("cspy","/cspy on", true, true)
|
2024-07-17 10:20:32 -04:00
|
|
|
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
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|