Jump to content
McKay Development

EnelGy

Member
  • Content Count

    27
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I set some sessionExpired function, that reconnect the bot to steam when its expired. But when it expires, it reconnect the bot multiple times. The command below send about 20 messages that theres an error, and the error is fixed. Also in console it looks like (picture). Does anyone know wheres the problem ? community.on("sessionExpired", function(err) { client.channels.cache.get("753653286283903126").send('<:false:750799883572609245> **There was an error, fixing the error... <:repairing:755511536423927909>**') .then(sentMessage => sentMessage.delete({
  2. Hey, I keep getting error 429 even if I set pollInterval to 5000ms, where can be problem ? let manager = new TradeOfferManager({ steam: client2, community: community, language: 'en', pollInterval: 5000 });
  3. How can I check ? I knew what is offer.id but didnt know how to check ...
  4. But what if I want it to have that handler on specific trade ? There are 2 diffrent sending trades functions, first is the bot doesnt give anything, and this i want to check if is confirmed, second is the bot is giving.. (I have solved it wuth adding if statements on itemstogive == 0) 1. How can I know that first sent trade offer is matching with some id ?? like if (offer.id === ______)... I need something that says if (offer.id.state === "accepted"), but this code wont work, how can i do it ?? 2. Some developer told that i can fix this using polldata, is it possible
  5. Could you please help me ?? So how could I prevent that bot will not respond both users when only 1 user confirmed the trade offer ?? It is really frustrating to see it and really dont know how to prevent it in chat it looks like this: (1 - user "EnelGy" accepted the trade, 2 - user "Command" wrote the same command, but didnt accept the trade...) And if the user who won accept the trade that bot is sending his winnings, it resets(like he registered sentOfferChanged() - accepted offer) and generates another game where also are 2 users: After accepting the win: this is
  6. I there any code/function to detect last accepted offer and say what was opponents trade link ??? The reason why do I need it is because when 2 different users got offers, and 1 of them accepts the trade, bot doesnt know who confirmed, (but registered that someone confirmed) so bot sends them both message like "Success trade confirmed "
  7. I have copied this code and need help what i need to change to make it work... Items that bot is requiring opponent has, so the item is existing and if the guy doesnt have the item, console says that. I got this error and dont know why.. . the script is here if(isNaN(amount) || amount === undefined){ console.log('invalid number'); } else{ var count = 0; var i = 0; console.
  8. And if I already filtred my inv ? How do i find the item ?? Send me here some coded example please
  9. How can I simply add multiple same items ? For example opponent says 20 keys, so i create offer with 20 keys. I have just tried something like var myItem = .....; addMyItems(myItem).repeat(amount); But dont know what to set after var myItem What should I set there ?
  10. I think i have set the language but if I try something like newSetItems.name, it gives "undefined"
  11. I dont know how to add items by knowing their names and without any others numbers.
×
×
  • Create New...