Hi, I'm trying to do a command with the custom api quote to add or remove a number but I'm freaking rusty in js, I did this
$(eval
var a = new Number($(urlfetch https://twitch.center/customapi/quote?token=TOKEN&data=1&no_id=1)),
b = new Number($(2));
if ($(1)==add) {
a += b;
new String($(urlfetch https://twitch.center/customapi/editquote?token=TOKEN&data=1 ${a}));
} else if ($(1)==remove) {
a -= b;
new String($(urlfetch https://twitch.center/customapi/editquote?token=TOKEN&data=1 ${a}));
} else {
PEPEGA;
})
It do edit the quote but the quote is ${a} after, I can't do interpolation I'm going crazy
(I know the code is probably real ugly)