Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.24 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.24 KB

Discord Bot [Typescript Template]

This is a template for a discord bot written in typescript. It uses discord.js.

Setup

Prerequisites

Installation

  1. Template the repository by clicking the green "Use this template" button on the top of the page.
  2. Clone the repository to your local machine.
  3. Open the repository in your terminal and run npm install to install all dependencies.
  4. Create a .env file in the root directory of the repository and add follow the template in .example.env.
  5. Run npm run dev to start the bot in development mode.

Discord Bot Token

  1. Go to the Discord Developer Portal.
  2. Create a new application.
  3. Go to the "Bot" tab and create a new bot.
  4. Copy the token and paste it into the .env file.
  5. Copy the client ID and paste it into the .env file.

You can follow the Discord.js Guide for more information.