I’m trying to make a command for someone after not making one for years and I’ve remade it multiple time but I just keep getting Invalid or unexpected token [<context>:1:4]
Twitch command struggles
5 replies
!addcom !BigBacked 🚨BIG BACK ALERT🚨 $(touser) is being Big and their back has $(eval a=["grown 2 inches", "grown 5 inches", "grown 9,000 inches", "grown 7 inches", "grown 1,000 inches", "grown 55 inches","grown 26 inches", "turned into a flat screen Tv", "turned into a school bus", "turned into a deep freezer"]a[Math.floor(Math.random()*a.length)])
Something like this:
!addcom !BigBacked :police_car_light: BIG BACK ALERT:police_car_light: $(touser) is being Big and their back has $(eval a=["grown 2 inches", "grown 5 inches", "grown 9,000 inches", "grown 7 inches", "grown 1,000 inches", "grown 55 inches","grown 26 inches", "turned into a flat screen Tv", "turned into a school bus", "turned into a deep freezer"]; a[Math.floor(Math.random()*a.length)]; )
Are you sure you edited the command? !addcom will fail if the command already exists, try:
!editcom !BigBacked :police_car_light: BIG BACK ALERT:police_car_light: $(touser) is being Big and their back has $(eval a=["grown 2 inches", "grown 5 inches", "grown 9,000 inches", "grown 7 inches", "grown 1,000 inches", "grown 55 inches","grown 26 inches", "turned into a flat screen Tv", "turned into a school bus", "turned into a deep freezer"]; a[Math.floor(Math.random()*a.length)]; )
Didn't find your answer? The community is on Discord.
Ask on Discord