Discord-ts-app
  • README.md
  • GUIDE
    • Setup
    • Environment
    • Events
    • Commands
    • Middlewares
    • Modules
Powered by GitBook
On this page
  • Download the framework
  • Start your project

Was this helpful?

  1. GUIDE

Setup

First of all, you will need to download the structure of the bot that will serve as a basis for your project. Follow carefully the contents below to avoid problems later on ! 🚀

Download the framework

In the first time, clone the base repository

git clone https://github.com/discord-ts-app/discord-ts-app.git <project name>

You can define the name of your project directly in the clone if you wish !

Start your project

Then, the application must be initialized with the following three commands :

  • Install the Node outbuildings

  • Start the compilation of your bot in order to transcribe the typescript but javascript

  • Start your bot

npm install
yarn install

Now that the installation is done, you need to copy/paste the .env.example file, rename it to .env and modify its contents accordingly.

npm run build
yarn build
npm run start
yarn install

You must use the last two commands at the same time, so open two ternimals in order to execute both commands.

PreviousREADME.mdNextEnvironment

Last updated 4 years ago

Was this helpful?