toluschr / BetterDiscord-Animated-Status

Animate your Discord Status with this BetterDiscord Plugin
MIT License
254 stars 490 forks source link

Fix in the ReadMe #131

Closed kravalli closed 11 months ago

kravalli commented 1 year ago

Notice taken

Discord Version

163658

Discord Release Channel

stable

BetterDiscord Version

1.0.9008

Plugin Version

0.13.2

Expected behavior

Display the code snippet correctly

Actual behavior

In the code snippet for the text part of the clock the code isn't displayed correctly. The problem is that you need to escape the ` with a backslash ().

\ eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();`${fmt(d.getHours())}:${fmt(d.getMinutes())}:${fmt(d.getSeconds())}` \

It would look like this: eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();`${fmt(d.getHours())}:${fmt(d.getMinutes())}:${fmt(d.getSeconds())}`