Hi, im new to this and i don't know how to check if the key is valid or invalid.. This is the code
client.on("friendMessage", function (steamID, message) {
if (steamID == AdminID && message.indexOf('!key') == 0) {
var GetKey = message.replace('!key ', '');
client.redeemKey(GetKey);
client.chatMessage(steamID, "Key activated: " + GetKey);
}
});
Thanks