This repository has been archived on 2023-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
discord-bot/README.md

2.3 KiB

Discord Bot
GitHub Actions Status GitHub stars GitHub issues GitHub Pull Requests GitHub forks GitHub license

Table of Contents

Installation

Setup

  1. Create a new Discord Application.
  2. Make it a Bot account.
  3. Enable Server Members Intent, and Message Content Intent under Privileged Gateway Intents.
  4. Proceed with the installation.
  5. 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 use pm2 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

img