How to translate uptime command

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})

1 Like

Small mistake but shouldn’t it be:

x=a.replace("hours","h");
y=x.replace("minutes","m");
z=y.replace("seconds","s");

?

Oh yeah, little miss. Fixed

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