Igaresha Posted December 3, 2017 Report Posted December 3, 2017 Hello guys, i've got a problem which my brain cant solve Bot should send message to admin (via steam chat) after accepting trade offer (for example), but he dont do it.. Thats my not working code: manager.on('newOffer', (offer) => { if (offer.itemsToGive.length === 0) { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`[!]Trade Accepted! Status: ${status}.`); client.chatMessage(76561198074539527, 'Trade accepted! Check bot's inventory!'); } Quote
Dr. McKay Posted December 3, 2017 Report Posted December 3, 2017 SteamIDs are too large to be represented as JavaScript numbers. You need to make that SteamID a string (wrap it in quotes). Quote
Igaresha Posted December 3, 2017 Author Report Posted December 3, 2017 Thanks alot for the help, its working fine now Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.