Twitch command struggles

Asked Aug 19, 2025·5 replies·Last activity 12 months ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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]

5 replies

If you share your complete command it could be more useful to help you fix it 🙂

!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)]; )

It showed up as :police_car_light: BIG BACK ALERT:police_car_light: thistomoko is being Big and their back has Invalid or unexpected token [<context>:1:4] when I tried to use it

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