Follow custom command

$(eval var a = $(urlfetch$(user)&channel=$(channel)&format=daysint); if (a === “$(user) is not following $(channel)”) { “$(touser)is not currently following. Please leave a follow.” } else { “$(touser)has been following for [” + ++a + “]days” })

I’m trying to make a follow command and I can’t seem to get it to display the correct message when people aren’t following :frowning: any help is appreciated!

Try this

$(eval a=`$(urlfetch$(touser)&channel=$(channel)&format=daysint)`
;if(a.includes(`is not following`)) {`$(touser)is not currently following. Please leave a follow.`}
else{`$(touser)has been following for [`+a+`]days`})
1 Like

Thanks! I got it to work just had to change the first touser to user :slight_smile:

1 Like

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