Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
steam.redeemKey(v, (r, d, p) => {
var subs = [];
if( p != null && typeof p == "object" ){
Object.keys(p).forEach((v,k) => {
subs.push(p[v] + " (" + v + ")");
});
}
webhook.send("Key: " + v + " | Result: " + resolveCode(Steam.EResult, r) + " | Purchase information: " + resolveCode(Steam.EPurchaseResult, d) + " | Subs: " + subs.join(", "), { username: "Redeem Key", avatarURL: "https://eet.li/eb8e443.png" } );
});
}, k*1000);