2024-07-28 02:37:31 -04:00
|
|
|
module.exports = {
|
|
|
|
load: () => {
|
2024-07-27 02:39:18 -04:00
|
|
|
|
2024-07-28 02:37:31 -04:00
|
|
|
},
|
|
|
|
loadBot: (b) => {
|
|
|
|
b.add_sc_task('cspy', '/cspy on', true, 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
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
2024-07-27 02:39:18 -04:00
|
|
|
}
|