NightDev Community Forums

Need help with !Wins command on Nightbot

!addcom -cd=5 !wins $(eval a=$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN).match(/~\d+K~/g);a?(b=a.length,c=(+a.map(x=>x.slice(1,x.length-1)).join(,)+)):(b=0,c=``);`$(channel) has ${b} wins ${c})

I continue to get Right-hand side of ‘instanceof’ is not an object response from Nightbot

What is wrong with this formula? All of my other formulas such as !addwin !resetwins all work fine

You have a stray ` character lingering, which may be why.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.