Skip to content

A small discord.js bot written in typescript to start off faster with your idea

License

Notifications You must be signed in to change notification settings

Luna-devv/discord.ts-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord.js TypeScript Example

Installing

In order to use this example, please download node.js with a minimum version of v18.
After this is done, please install yarn (package manager) and tsc (typescript compiler) using

npm install -g yarn tsc

In order to install this project and getting all packages, please run

git clone https://github.com/Luna-devv/discord.ts-example
cd discord.ts-example
yarn install

Note!
You always should run this command in a second terminal when working on this project

yarn tsc --watch

Starting Bot

Before you can start the bot and go online, you have to follow some steps.

  1. Create a discord bot application in the developer portal. How to?
  2. Copy the token in the bot tab. DON"T SHARE IT
  3. Put the token into the src/config.ts file
  4. Check yarn tsc --watch is running and use node dist/app.js

🎉 Done, use . test or /help to test :)

Editing

Learn js and ts before and use brain, thanks

About

A small discord.js bot written in typescript to start off faster with your idea

Topics

Resources

License

Stars

Watchers

Forks