Skip to content
/ ts-discord-bot Public template

Minimal template for setup quickly a discord bot in Typescript.

License

Notifications You must be signed in to change notification settings

Mara-Li/ts-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Minimal template for setup quickly a discord bot in Typescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published