GithubHelp home page GithubHelp logo

pho0m / discordjs-v14-template-ts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mericcan41/discordjs-v14-template-ts

0.0 0.0 0.0 57 KB

A typescript template for Discord.js v14 that includes handlers, slash commands, mongodb, permissions and more.

TypeScript 100.00%

discordjs-v14-template-ts's Introduction

Discord.js v14 Bot Template

Features

  • ๐ŸŸฆ Typescript
  • ๐Ÿ”ฅ Slash commands (supports auto complete!)
  • โœ‰๏ธ Message commands
  • ๐Ÿ•› Cooldowns
  • ๐Ÿด Detailed Permissions
  • ๐Ÿ’ช Event & Command handlers
  • ๐Ÿƒ MongoDB Support

Installation, Build and Run

  1. Clone the repository then create a file named .env and fill it out accordingly
TOKEN=YOURTOKENHERE
CLIENT_ID=BOTS CLIENT ID
PREFIX=!
MONGO_URI=YOUR MONGO CONNECTION STRING
MONGO_DATABASE_NAME=YOUR DATABASE NAME
  1. Install typescript, To install TypeScript, you can run the following command in your terminal, This will install the latest version of TypeScript globally on your computer. (You can skip this if you already have typescript installed)
npm install -g typescript
  1. Compile your TypeScript code to JavaScript by running the following command:
tsc
  1. Once the build is complete it will generated a folder named build that contains compiled version of your ts code to js. You can run the following command in your terminal to run the project:
npm start

discordjs-v14-template-ts's People

Contributors

davidotno avatar mashwishi avatar mericcan41 avatar romadevworld avatar sertaykabuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.