Hi, I come back now to help you to translate the “!uptime” command.
!addcom !uptime $(eval var a=‘$(twitch $(channel) “{{uptimeLength}}”)’; if (a.includes(“not live”)){
“$(channel) here is your personalized offline message”
}else{
x=a.replace(“hours”,“h”);
y=x.replace(“minutes”,“m”);
z=y.replace(“seconds”,“s”);
“Here is your personalized message to show the time:”+z})
Italic text is the text you can modify.
Bold text is text that you are modifying.
By example for Spanish:
!addcom !uptime $(eval var a=‘$(twitch $(channel) “{{uptimeLength}}”)’; if (a.includes(“not live”)){“$(channel) no está en directo”}else{
x=a.replace(“hours”,“horas”); y=x.replace(“minutes”,“minutos”); z=y.replace(“seconds”,“segundos”);
"Tiempo que llevamos en directo: "+z})