Jump to content


Photo
Question

Send a text after accepted trade

node.js node-steam-tradeoffer-manager

  • Please log in to reply
4 replies to this topic

#1 Matii

Matii

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 18 February 2019 - 07:58 PM

Hello, i have a question do anyone have idea how to make a diffrent texts after trade is accepted by person who write command i have in mind something line when buyer use !buytf > get offer > accept it > get a message with other bot who sell tf keys etc if he use !buycs he get message with bot who sell csgo keys and thats my question idk who to make it in 100% i know i can make 1 message 

if (TradeOfferManager.ETradeOfferState[OFFER.state] == 3) {
client.chatMessage(OFFER.partner, " Thanks for trading with me!")
    
  }


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,187 posts

Posted 18 February 2019 - 10:12 PM

Your call to chatMessage is correct (although deprecated; you should check out the docs for the new SteamChatRoomClient), but your comparison is wrong. It should be:

if (OFFER.state == TradeOfferManager.ETradeOfferState.Accepted)


#3 Matii

Matii

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 19 February 2019 - 06:03 AM

Ok but its possible to make chatmessage when trade is accepted and check what command was used by user?



#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,187 posts

Posted 19 February 2019 - 06:52 AM

Yes.



#5 Matii

Matii

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 19 February 2019 - 07:28 AM

Would you give me a tip how please







Also tagged with one or more of these keywords: Question, node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users