toluschr / BetterDiscord-Animated-Status

Animate your Discord Status with this BetterDiscord Plugin
MIT License
255 stars 489 forks source link

How does the time thing work? #41

Open zeroapox opened 3 years ago

zeroapox commented 3 years ago

I honestly dont know what to do with "eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();${fmt(d.getHours())}:${fmt(d.getMinutes())}:${fmt(d.getSeconds())};" and its kinda bugging me out. Can anyone tell me what to do?

Firefox289 commented 3 years ago

Change the edit mode of the status changer and put this in

"eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();${fmt(d.getHours())}:${fmt(d.getMinutes())};","eval ['🕛','🕐','🕑','🕒','🕓','🕔','🕕','🕖','🕗','🕘','🕙','🕚'][((new Date()).getHours()%12)];"

And make the update time to 60000

Firefox289 commented 3 years ago

nevermind put this in

"eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();${fmt(d.getHours()% 12 || 12)}:${fmt(d.getMinutes())};","eval ['🕛','🕐','🕑','🕒','🕓','🕔','🕕','🕖','🕗','🕘','🕙','🕚'][((new Date()).getHours()%12)];"