Jump to content


Photo
Question

How to create a counter to trade offers sent by LevelUp BOT

node.js node-steam-tradeoffer-manager

  • Please log in to reply
3 replies to this topic

#1 Charlie-81

Charlie-81

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 01 February 2019 - 07:18 AM

Hello fellas ...
 
I'm trying to add a kind of "counter" to trades sent by my LevelUp BOT. I'm fairly lazy about programming, I do things on the basis of trial and error. The results, of course, are not always satisfactory.
 
with the screenshots it will be easy to understand what I want.
 
I tried use +conf.creator
but I realized trade offer not YET created and therefore, I would not get the result I want
 
then
 
I tried use: +offer.id
and the result was null
 
I don't want the result to necessarily be the token of the trade offer. I want there to have an accountant that changes according to the exchange offers that my bot sends.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,127 posts

Posted 01 February 2019 - 06:48 PM

If you're trying to include a unique token with each offer, you're probably best off just generating a random string.


  • Charlie-81 likes this

#3 Charlie-81

Charlie-81

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 01 February 2019 - 06:54 PM

If you're trying to include a unique token with each offer, you're probably best off just generating a random string.

yep... can be a random string, but failed.

 

I tried it:

 

var numtrade;

 

 

start = 0;

numtrade = start + 1;



#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,127 posts

Posted 02 February 2019 - 01:22 AM

Getting a random hex string is pretty easy: require('crypto').randomBytes(3).toString('hex')







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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users