Installation
Locker is currently in BETA. There is always room for improvement, however all future changes should happen without data loss.
Step-by-step
First of all clone the github repository (private in BETA) to a folder of your choice.
Run
npm installin the root directory, all the necessary packages should get installed with that.Rename
config-example.jsontoconfig.jsonand fill in necessary data.Set up your database with
setup.sqlindbfolder.Start Locker with the
node locker.jscommand.
Always online
It is possible to run Locker 24/7 and have it restart on crash/error, this can be done through the pm2 package. It will monitor and restart the bot on crash, plus a few other things found in the earlier link.
Install PM2 globally with
npm install pm2@latest -g.Run Locker through PM2 with
pm2 start locker.js --name "Locker".
Last updated
Was this helpful?