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.0or newer (runnode -vto check your node version).
cairo(Installation instructions)
This is required by
colorcommand. If you do not want to use the command, you may removecanvasfrom package.json, since that dependency is the one that requirescairo.
git clone https://github.com/BobbyWibowo/Lightbringer2.git
cd Lightbringer2
yarn installGo to Running section for more information about running the bot.
cd path/to/Lightbringer2
git pull
yarn install --forceMake sure the bot is turned off before updating.
cd path/to/Lightbringer2
yarn startIf 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 startso that the bot can create the configuration template file!
Icon made by Freepik from www.flaticon.com, with slight color modification.
