Back to homepage

Deploying acrNode.js v1.2.2

By thehermit (currently impersonating [RSJ] shimobri)

  1. Make a Github account
  1. I won’t do any explaining here, since I think most people will have one; if you do not, just go to Github signup and sign up, if you need help go search online
  1. Making a Vercel account

I am including this step since I presume there aren’t a lot of people here who already have one. Go to https://vercel.com/signup and select hobby plan, create a username, and press continue.

You should come to a screen like below. Click connect with Github:

Github should now ask you to verify details and permissions, and then it will redirect you back to Vercel. Vercel should have you set up a few details. Stick to the hobby plan, it is free, and works great.

  1. Deploying

https://vercel.com/new/import?s=https%3A%2F%2Fgithub.com%2Fhermanboxcar5%2Facrnode&hasTrialAvailable=1&showOptionalTeamCreation=false&project-name=acrnode&framework=other 

Make up a name for it, do acrnode or something.

In the first red box, put in a name for the vercel deploy. Your bot will be that name .vercel.app so choose wisely. DO NOT, i repeat DO NOT TOUCH the blue box. If you did, reset everything to what it is in the above picture.
Then, in the bottom red box, add 2 variables:

username

The email you sign into rocketbot with

password

The password you sign into rocketbot with

Make sure the variable names, username and password are exactly as they are, no capital letters, no space at the end.

Finally, click deploy.

  1. Scroll down and watch as Vercel starts running your program. If an error appears, check that you did everything correctly, if the issue persists DM me with screenshots (and no, I do not need to know your username and password, you can sensor those data points in the screenshots)

Wait until vercel redirects you and you see confetti.

Your page should now look like this. Note the text in the completely black frame. It should say exactly that. Click on it, and it will open in a new tab. Wait for a minute, it takes a bit for the cron job to start up. When you go to the site now, it should say:
Bot status: Acitve

Last request: 3/3/2024, 3:44:25 PM

[]

Or something similar.

DISCLAIMER: I built this with time in PST, sorry for the inconvenience of having to convert if you don’t live around the west coast.

  1. A few problems with this:
  1. Vercel HATES cron jobs
  2. Vercel HATES intervals and timeouts

So the cron job will eventually fail and struggle to revive itself. If you have used ACR before, you have a uptimerobot account. If not, register one. I will again, not guide you through making an account. https://uptimerobot.com/ 
So they actually updated their UI, and it looks a lot better now, and this guide is based on the new version.

If you are lazy, you can just add the /end monitor, if you want it to be reliable use both / and /end.

Repeat the following steps for /end and /, or whichever option you want.

Right now go to your opened tab of the vercel deployment that is something like https://acrnode-number2.vercel.app/ and copy that link.

Now:

Click on the blue new monitor button on the top right.
Your page should look something like this (ignore that bar in the middle)

Set your url WITH /end if applicable, use http monitoring, use 5, 11, or 16 min monitor intervals, and set the timeout to max.