2023-12-17 14:55:27 -05:00
|
|
|
|
const CommandError = require('../CommandModules/command_error')
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
name: 'sctoggle',
|
|
|
|
|
//<< this one line of code broke it lmao
|
|
|
|
|
description:['selfcare toggle'],
|
|
|
|
|
aliases:['selfcaretoggle'],
|
2023-12-20 11:54:03 -05:00
|
|
|
|
trustLevel: 1,
|
2023-12-17 14:55:27 -05:00
|
|
|
|
execute (context) {
|
|
|
|
|
const bot = context.bot
|
|
|
|
|
const source = context.source
|
|
|
|
|
const args = context.arguments
|
2023-12-20 11:54:03 -05:00
|
|
|
|
if (!args && !args[0] && !args[1] && !args[2]) return
|
|
|
|
|
switch (args[1]) {
|
2023-12-17 14:55:27 -05:00
|
|
|
|
case 'vanishon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.vanished = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Vanish selfcare on', color:'green'})
|
|
|
|
|
break
|
|
|
|
|
case'vanishoff':
|
|
|
|
|
source.sendFeedback({text:'Vanish selfcare off', color:'red'})
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.vanished = false
|
|
|
|
|
bot.command('vanish off')
|
2023-12-17 14:55:27 -05:00
|
|
|
|
|
|
|
|
|
break
|
|
|
|
|
case 'muteon':
|
|
|
|
|
source.sendFeedback({text:'Mute selfcare on', color:'green'})
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.unmuted = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
break
|
|
|
|
|
case 'muteoff':
|
|
|
|
|
source.sendFeedback({text:'Mute selfcare off', color:'red'})
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.unmuted = false
|
2023-12-17 14:55:27 -05:00
|
|
|
|
break
|
|
|
|
|
case 'tptoggleon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.tptoggle = false
|
|
|
|
|
bot.command('tptoggle on')
|
|
|
|
|
source.sendFeedback({text:'Tptoggle on', color:'red'})
|
2023-12-17 14:55:27 -05:00
|
|
|
|
break
|
|
|
|
|
case 'tptoggleoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.tptoggle = true
|
|
|
|
|
|
|
|
|
|
source.sendFeedback({text:'Tptoggle off', color: 'green'})
|
2023-12-17 14:55:27 -05:00
|
|
|
|
break
|
|
|
|
|
case 'godon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.god = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'God selfcare on', color: 'green'})
|
|
|
|
|
break
|
|
|
|
|
case 'godoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.god= false
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Tptoggle off', color: 'red'})
|
|
|
|
|
break
|
|
|
|
|
case 'prefixon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.prefix = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text: 'Prefix selfcare on', color: 'green'})
|
|
|
|
|
break
|
|
|
|
|
case 'prefixoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.prefix = false
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Prefix selfcare off', color:'red'})
|
|
|
|
|
break
|
|
|
|
|
case 'usernameoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.username = false
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Username selfcare off', color: 'red'})
|
|
|
|
|
break
|
|
|
|
|
case 'usernameon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.username = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Username selfcare on', color:'green'})
|
|
|
|
|
break
|
|
|
|
|
case 'skinon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.skin = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Skin selfcare on', color:'green'})
|
|
|
|
|
break
|
|
|
|
|
case 'skinoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.skin = false
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Skin selfcare off', color:'red'})
|
|
|
|
|
break
|
|
|
|
|
case 'cspyon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.cspy = true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Cspy selfcare on', color:'green'})
|
|
|
|
|
break
|
|
|
|
|
case 'cspyoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.cspy = false
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Cspy selfcare off', color:'red'})
|
|
|
|
|
break
|
|
|
|
|
case 'nicknameon':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.nickname= true
|
2023-12-17 14:55:27 -05:00
|
|
|
|
source.sendFeedback({text:'Nickname selfcare on', color:'green'})
|
|
|
|
|
break
|
|
|
|
|
case 'nicknameoff':
|
2024-01-12 12:24:01 -05:00
|
|
|
|
bot.options.selfcare.nickname = false
|
|
|
|
|
source.sendFeedback({text:'Nickname selfcare off', color:'red'})
|
2023-12-17 14:55:27 -05:00
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
default:
|
2023-12-20 11:54:03 -05:00
|
|
|
|
source.sendFeedback({text:'Invalid argument', color:'red'})
|
|
|
|
|
source.sendFeedback({text:'the on arguments are vanishon, muteon, tptoggleon, godon, prefixon, usernameon, skinon, cspyon, nicknameon'})
|
|
|
|
|
source.sendFeedback({text:'the off arguments are vanishoff, muteoff, tptoggleoff, godoff, prefixoff, usernameoff, skinoff, cspyoff, nicknameoff'})
|
|
|
|
|
}
|
2023-12-17 14:55:27 -05:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//[%s] %s › %s
|
|
|
|
|
//was it showing like that before?
|
|
|
|
|
// just do text bc too sus rn ig
|
|
|
|
|
// You should remove the with thing and the translate and replace
|
|
|
|
|
|
|
|
|
|
// Parker, why is hashing just random characters???
|
|
|
|
|
//wdym
|