$(eval a=$(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser)?moderatorId=personal API &format=ymdh);a=a.replace(“has been follow”,“ha estado siguiendo a”);a=a.replace(“for”," por");b=a.includes(“años”)?“años”:“año”;a=a.replace(“year”,b);b=a.includes(“meses”)?“meses”:“mes”;a=a.replace(“months”,b);b=a.includes(“días”)?“días”:“día”;a=a.replace(“day”,b);b=a.includes(“horas”)?“horas”:“hora”;a=a.replace(“hour”,b)
You may wish to use code blocks to format code, as otherwise the text input will change to things like links and emojis. I haven’t tested this, but something like this may work:
$(eval let a = `$(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser)?format=ymdh)`;a.replace("has been following","ha estado siguiendo a").replace("for"," por").replace("year", "año").replace("months", "meses").replace("month", "mes").replace("day", "día").replace("hour", "hora"))
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.