Charlie-81 Posted February 1, 2019 Report Posted February 1, 2019 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.creatorhttps://prnt.sc/mf6xbjbut I realized trade offer not YET created and therefore, I would not get the result I want then I tried use: +offer.idhttps://prnt.sc/mf74efand 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. Quote
Dr. McKay Posted February 1, 2019 Report Posted February 1, 2019 If you're trying to include a unique token with each offer, you're probably best off just generating a random string. Charlie-81 1 Quote
Charlie-81 Posted February 1, 2019 Author Report Posted February 1, 2019 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; Quote
Dr. McKay Posted February 2, 2019 Report Posted February 2, 2019 Getting a random hex string is pretty easy: require('crypto').randomBytes(3).toString('hex') 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.