2.3 KiB
2.3 KiB
Table of Contents
Installation
Setup
- Create a new Discord Application.
- Make it a Bot account.
- Enable
Server Members Intent
, andMessage Content Intent
under Privileged Gateway Intents. - Proceed with the installation.
- Setup the Webfront Configuration
Normal Installation
Requirements
Installation
git clone https://github.com/chxseh/discord-bot.git
cd bot
npm ci
For the initial setup, use
npm start
. After initial setup is completed you can usepm2 start npm --name "bot" -- start
to keep the bot running.
Webfront Setup
For the webfront to work, you must set a OAuth2 Redirect URL in your Discord Application.
The redirect should be https://yourDomain.com/discord/callback