Exclude users from response in command

Is there anyway to remove certain users from a response in a command? But read it from a text file or something? Cause I used this:

$(user) hugged $(eval r=`$(urlfetch json http://tmi.twitch.tv/group/user/$(channel)/chatters)`;try{c=JSON.parse(r).chatters;a=c.moderators.concat(c.staff,c.admins,c.global_mods,c.viewers).filter(n=>!["$(user)","name1","name2","name3"].some(o=>n.toLowerCase()==o.toLowerCase()));a.length>0?a[Math.floor(Math.random()*a.length)]:`No chatters!`}catch(e){`Error: ${e.message}: ${r}`.substr(0,400)})

but there is a character limit so I can’t add all the twitch bots. Any possible way to change this to read the names from a text file?

If you put the names in a pastebin like this:

[`Name1`,
`Name2`,
`Name3`]

The put the pastebin in the command between the =>! And .some

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