Lightbringer2 is yet another Discord self-bot written with discord.js (and Discord Akairo framework).
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.0
or newer (runnode -v
to check your node version).
cairo
(Installation instructions)
This is required by
color
command. If you do not want to use the command, you may removecanvas
from package.json, since that dependency is the one that requirescairo
.
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 yarn pm2
.
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 yarn background
.
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 start
so that the bot can create the configuration template file!
Icon made by Freepik from www.flaticon.com, with slight color modification.