diff --git a/plugins/sc_cspy.js b/plugins/sc_cspy.js new file mode 100755 index 0000000..7d28434 --- /dev/null +++ b/plugins/sc_cspy.js @@ -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 + } + }) + } +}