Git Product home page Git Product logo

eggsleggs / discordjs-v14-template Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 48 KB

A Typescript template for Discord.js v14 that includes sharding, handlers, slash commands, Prisma, i18n and more.

License: The Unlicense

TypeScript 100.00%
discord discord-bot discord-js discord-js-14 discord-js-event-handler discord-js-template discordjs discordjs-bot discordjs-slash-commands discordjs-typescript

discordjs-v14-template's Introduction

discordjs-v14-template

This is a template which was created for porting the GateKeeper bot to discord.js v14 from Pycord. The template isn't completely finished but should run without any issues. If you have any issues, please open an issue on the GitHub repository.

This template was built on top of discordjs-v14-template-ts

Features

  • ๐Ÿ’™ Typescript
  • ๐Ÿ”ผ Prisma ORM
  • ๐ŸŽŒ Command translations using i18n
  • โšก Sharding via a custom sharding manager
  • ๐Ÿ“‘ Enhanced logging
  • ๐Ÿ’ฌ Slash commands (incl. Autocomplete)
  • ๐Ÿ“ Event Handler
  • โฑ๏ธ Command Cooldowns & Permission

Installation

  1. Clone the repository and create a .env file in the root directory with the following content:
DISCORD_BOT_TOKEN=your_token
DISCORD_BOT_CLIENT_ID=your_client_id
DATABASE_URL=your_database_url
  1. Install the dependencies using npm install
  2. Build the project using npm run build
  3. Run the bot using npm start

Things that need improving

  • Add more translations as an example
  • Add more commands as an example
  • Add more events as an example
  • Finish the logging system using chalk and pino

discordjs-v14-template's People

Contributors

eggsleggs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.