API Startup

Run:

sudo nano /home/user/scbot

Now we need to edit one quick configuration on Line 9. Lets replace this file with your database location as set up in the beginning! Need to go back?

const db = new sqlite3.Database('/home/admin/activity.db', (err) => {

Once you have replaced this with your database location run the following commands.

sudo cd /scbot

and

sudo pm2 start server.js

And guess what! Thats it for API Configuration. Let head on to the last step!