Lightbringer2 makes full use of ES2017's
async/await functionality for clear, concise code that is simple to write and easy to comprehend.
This bot requires node
8.0.0or newer (run
node -vto check your node version).
This is required by
colorcommand. If you do not want to use the command, you may remove
canvasfrom package.json, since that dependency is the one that requires
git clone https://github.com/BobbyWibowo/Lightbringer2.git cd Lightbringer2 yarn install
Go to Running section for more information about running the bot.
cd path/to/Lightbringer2 git pull yarn install --force
Make sure the bot is turned off before updating.
cd path/to/Lightbringer2 yarn start
If you want to use the bot with PM2, there is a shortcut called
If you simply want to run the bot in background, you can try screen, which is usually available by default in most Linux distros, with
WARNING! Make sure you have properly filled the configuration file before starting the bot in background or with PM2!
Run the bot once with
yarn startso that the bot can create the configuration template file!