Closed Kasp42 closed 8 years ago
Game reported by cd-key activation can be totally different than the one owned by the account. Sometimes it doesn't make any sense and ASF is not able to check if account owns specific game or not. I already activated packs reporting as "Unknown PackageID XXXXX".
Besides, it'd dramatically increase memory usage if ASF was about to check all it's owned games before trying to activate the game, I bet you didn't try !owns
command for 3k games account - I did.
If you want such thing, then do it yourself with !owns
command instead of expecting from !redeem
to know better when to activate key and when not.
It seems worth adding to the database the bot what games he has to avoid OnCooldown. When the key is sent for the first time that it is known from some of the game. For example there are 12 bots. In 7 (Bot0, Bot1, Bot2, Bot3, Bot4, Bot5, Bot6) of 12 bots have a game Deadbreed® - Undead Beta Pack And when we send the first bot key 4FLHG-D6485-8EL3C it issues Key: 4FLHG-D6485-8EL3C | Status: AlreadyOwned | Items: [55683, Deadbreed® - Undead Beta Pack] we know that the key 4FLHG-D6485-8EL3C activates game Deadbreed® - Undead Beta Pack and there is no sense to send this key bots Bot0-Bot6 P.S. My English is bad