Skip to content

Discord LFG Bot for AFK Arena Nihilum Guilds

License

Notifications You must be signed in to change notification settings

Dae314/nihilum_lfg_bot

Repository files navigation

Nihilum LFG Bot

version: 1.0.0

Discord LFG bot for Nihilum guilds in AFK Arena

Getting Started

This project uses Discord.js https://discord.js.org/#/

Prerequisites

To compile, you must have NodeJS >=16.15.1 installed.

Deployment

  1. Clone a copy of the repository
    1. cd /project/directory
    2. git clone https://github.com/Dae314/nihilum_lfg_bot.git
  2. Install the necessary packages
    1. cd /project/directory/nihilum_lfg_bot
    2. npm install
  3. Setup the variables in a .env file
  4. Add the bot to your Discord server
    1. Go to the My Apps page under the "Applications" section on the Discord Developer console
    2. Click on your bot application, and open the OAuth2 page
    3. Open Discord's OAuth2 URL generator
      1. Select the bot and applications.commands options.
      2. Once you select the bot option, a list of permissions will appear
      3. Select Read Messages/View Channels, Send Messages, and Read Message History
      4. Copy the link that is generated and paste it into your browser
    4. Follow Discord's prompts to add the bot to your server
  5. Register your commands to the server specified in .env
    1. npm run deploy
  6. Start the bot for development
    1. npm run start
  7. Start the bot for production
    1. If necessary, install pm2
      1. npm install --global pm2
    2. Start the bot with pm2
      1. pm2 start index.js --name "nihilum-lfg-bot"
    3. Check the console logs
      1. pm2 monit
    4. Stop the bot
      1. pm2 stop "nihilum-lfg-bot"
    5. Restart the bot
      1. pm2 restart "nihilum-lfg-bot"
    6. Start pm2 at boot
      1. pm2 startup
      2. Run the command that pm2 generates
      3. Save your currently running list to start at boot (note, the bot must be running when you run this)
        1. pm2 save
    7. Disable pm2 at boot
      1. pm2 unstartup

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Dae314 - Maintainer - Dae314

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Discord LFG Bot for AFK Arena Nihilum Guilds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages