Naleksuh Posted September 19, 2022 Report Posted September 19, 2022 It looks like the "new offer" event doesn't fire for pending offers when the bot starts up. How can I ensure that all of those are processed when the bot starts up? I have noticed that the script creates a polldata.json file, but despite this, it never fires the trade offers while the bot is down. I guess this is to avoid duplicate trade offer processing, but this could be avoided by just not processsing them before it shuts down. So, does anyone know how to handle something like this? Quote
Naleksuh Posted September 19, 2022 Author Report Posted September 19, 2022 It looks like in order to fix this problem, you just need to set polldata.json to {} - so I guess the purpose of that file was to avoid doing exactly the thing I wanted to do? Kind of ironic, but different people code in different ways! Quote
Dr. McKay Posted September 20, 2022 Report Posted September 20, 2022 That's correct, if you want newOffer to be emitted again the next time the bot starts up, you'd want to make sure you don't save poll data. 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.