Mods command shows me: Unexpected identifier

Asked Jun 10, 2023ยท1 replyยทLast activity 3 years 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.

This is the command, but I get: Unexpected identifier

any solution?

!addcom !mods /me Mods $(eval mods=$(urlfetch json https://tmi.twitch.tv/group/user/$(channel)/chatters).chatters.moderators;bots=[%60streamlabs%60,%60streamelements%60,%60nightbot%60];bots.forEach(b=%3Emods=mods.filter(m=%3Em.toLowerCase()!=b.toLowerCase()));%60 | ๐Ÿ‘‰๐ŸปMods activos: ${mods.join(, )}`;) ๐Ÿ‘ˆ๐Ÿป -ul=moderator

1 reply

Hey @Solar Donkey!

The API endpoint you're using has been shut down by Twitch, and there's no public alternatives as of now, since the API doesn't respond as it used to, the code is broken, which gives you that error.