version: 1.0.0
Discord LFG bot for Nihilum guilds in AFK Arena
This project uses Discord.js https://discord.js.org/#/
To compile, you must have NodeJS >=16.15.1 installed.
- Clone a copy of the repository
cd /project/directory
git clone https://github.com/Dae314/nihilum_lfg_bot.git
- Install the necessary packages
cd /project/directory/nihilum_lfg_bot
npm install
- Setup the variables in a
.env
file - Add the bot to your Discord server
- Go to the My Apps page under the "Applications" section on the Discord Developer console
- Click on your bot application, and open the OAuth2 page
- Open Discord's OAuth2 URL generator
- Select the
bot
andapplications.commands
options. - Once you select the
bot
option, a list of permissions will appear - Select
Read Messages/View Channels
,Send Messages
, andRead Message History
- Copy the link that is generated and paste it into your browser
- Select the
- Follow Discord's prompts to add the bot to your server
- Register your commands to the server specified in .env
npm run deploy
- Start the bot for development
npm run start
- Start the bot for production
- If necessary, install pm2
npm install --global pm2
- Start the bot with pm2
pm2 start index.js --name "nihilum-lfg-bot"
- Check the console logs
pm2 monit
- Stop the bot
pm2 stop "nihilum-lfg-bot"
- Restart the bot
pm2 restart "nihilum-lfg-bot"
- Start pm2 at boot
pm2 startup
- Run the command that pm2 generates
- Save your currently running list to start at boot (note, the bot must be running when you run this)
pm2 save
- Disable pm2 at boot
pm2 unstartup
- If necessary, install pm2
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Dae314 - Maintainer - Dae314
This project is licensed under the MIT License - see the LICENSE.md file for details
- PurpleBooth - for the README.md template