Open Corgasaurus opened 2 years ago
How are you running the bot? Via an IDE or sbt?
I'm using IntelliJ IDEA CE.
I've used both IntelliJ and sbt and neither has been an issue nor have I heard anyone encounter this. My only guess is it could be something outside of the bot (computer going to sleep or something?). Not sure if the logs have any useful info to dig into this some more.
Just following up if you've had any success or not. Else I'll close the issue since no one else has reported this.
I've been running into this issue as well. Things work great when I do a test run scheduled a few minutes in advance. When I set it to run at midnight (which is generally a few hours in the future), I come back in the morning and see that nothing has run. I too sort of suspect this is related to my computer going to sleep but haven't figured it out in the limited debugging I've done. I'm on a mac and running via sbt
, have tried turning off anything that I think would put it to sleep without any luck 🤷♂️
I'm also on a Mac running it through IntelliJ IDEA. For me, if I set it at 9am, I could have my computer open, awake doing other things and just watch it not trigger. So now I just get up and do it a few minutes before. I haven't done a midnight one yet.
From personal experience, I've run it as much as 5 hours before it's supposed to fire and have not had any issues on both Mac and PC. It echoes the time it's going to fire when you first run the bot so ensure that time looks correct to you.
[info] running com.resy.ResyBookingBot [INFO ] 2023-03-14 19:04:26.775-07:00 ResyBookingBot$:16 - Starting Resy Booking Bot [INFO ] 2023-03-14 19:04:27.548-07:00 ResyBookingBot$:45 - Next snipe time: 2023-03-14T19:05:00.000-07:00 [INFO ] 2023-03-14 19:04:27.549-07:00 ResyBookingBot$:46 - Sleeping for 0 hours, 0 minutes, and 30 seconds [success] Total time: 3 s, completed Mar 14, 2023, 7:04:27 PM
C:\Users\Developer\Documents\resy-booking-bot-3.1.0>
Running through Comamnd line on windows - SBT Only tried to set this up - filled in api key, auth token.
Filled in empty reservation details, And no CC on account yet.
not familiar much myself and not sure if this helps but I found I need to make sure to run just sbt
, wait for the console to open, and then type run
. The output is very similar when you do both but the later will leave the console open and is what you want to see (even after a message like [success] Total time: 2 s, completed
...)
I experienced this issue too on the first midnight snipe I tried to run. Woke up in the morn and saw the bot didn't fire. (Mac OS - Ventura, M1 iMac). Ran it again the following night and it attempted that time. The only thing that was different is that I left the terminal window open on the primary screen this time vs. the extended desktop screen when the screen when to hibernate. In no way am I making a strong correlation, but it's the only conscious difference I was aware of.
So you must have a credit card entered @m4rtint or else the bot will not work on restaurants that require it. See quote from the documentation below.
Lastly, remember to have a credit card on file in your account. Some reservations require a credit card before making a reservation in case of late cancellations or no-shows. Not having one will result in the snipe to fail!
Regarding the bot not running with sbt, read the documentation carefully. It specifically states to type sbt and then type run. It also states to not exit out of the sbt prompt. See quote from the documentation below.
You can run it via sbt. I would recommend doing this via CLI instead of inside IntelliJ. Type sbt to start the sbt instance, then type run. It will have some output then bring you back to the sbt prompt. Do not exit out of the sbt prompt as this will kill the bot. The bot is running inside the sbt instance and will wake up at the appropriate time to snipe a reservation.
Has anyone had the issue of the bot not waking up if it's been sleeping for more than just a few minutes?