Add command spy SC Task
This commit is contained in:
parent
7b3e194096
commit
69f9bcf90f
1 changed files with 16 additions and 0 deletions
16
plugins/sc_cspy.js
Executable file
16
plugins/sc_cspy.js
Executable 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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue