
Aswer
-
Posts
2 -
Joined
-
Last visited
Reputation Activity
-
Aswer reacted to Dr. McKay in Check if key is valid client.redeemKey
client.on("friendMessage", function (steamID, message) {
if (steamID == AdminID && message.indexOf('!key') == 0) {
var GetKey = message.replace('!key ', '');
client.redeemKey(GetKey, function (err) {
if (err) {
// key not activated
} else {
client.chatMessage(steamID, "Key activated: " + GetKey);
}
});
}
});
-
Aswer reacted to Dr. McKay in Check if key is valid client.redeemKey
Check the callback or promise result to redeemKey.
-
Aswer reacted to Dr. McKay in How do you get rich presence data?
It's in the user event in steam-user.