toluschr / BetterDiscord-Animated-Status

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

Unexpected token '{' #100

Closed redbluexe1 closed 2 years ago

redbluexe1 commented 2 years ago

Notice taken

Discord Version

112644 (2dd6bce)

Discord Release Channel

stable

BetterDiscord Version

1.4.0

Plugin Version

0.13.2

Expected behavior

the example in here

Actual behavior

when you put eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();${fmt(d.getHours())}:${fmt(d.getMinutes())}: its fine but when you type in the full code eval let fmt=t=>(t<10?'0':'')+t;let d=new Date();${fmt(d.getHours())}:${fmt(d.getMinutes())}:${fmt(d.getSeconds())}; it gives

Syntax error: Unexpected token {

redbluexe1 commented 2 years ago

nevermind. issue #83