Snazzah / slash-create

🗡️ Creator and handler for Discord's slash commands
https://slash-create.js.org
MIT License
348 stars 47 forks source link
discord discord-bot discord-interactions discord-message-components discord-slash-commands hacktoberfest slash-command slash-commands
[![NPM version](https://img.shields.io/npm/v/slash-create?maxAge=3600)](https://www.npmjs.com/package/slash-create) [![NPM downloads](https://img.shields.io/npm/dt/slash-create?maxAge=3600)](https://www.npmjs.com/package/slash-create) [![ESLint status](https://github.com/Snazzah/slash-create/workflows/ESLint/badge.svg)](https://github.com/Snazzah/slash-create/actions?query=workflow%3A%22ESLint%22) [![DeepScan grade](https://deepscan.io/api/teams/11596/projects/15103/branches/297399/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=11596&pid=15103&bid=297399) [![discord chat](https://img.shields.io/discord/311027228177727508?logo=discord&logoColor=white)](https://snaz.in/discord) Create and sync [Discord slash commands](https://discord.com/developers/docs/interactions/application-commands).

Features

Quickstart

If you want an easy start on getting slash commands on your bot, you can use slash-up to create a project using a template.

npx slash-up init

After creating a project, you can edit commands to your liking and start it up with yarn start.

You can also deploy a slash-create template to the following services:

Cloudflare Workers Vercel Heroku Railway
Deploy to Cloudflare Workers Deploy with Vercel Deploy Deploy on Railway

Installation

npm i slash-create

Or, using yarn:

yarn add slash-create

Using webservers

In order to use a specific webserver, you will need to install the dependency associated with that server. The following server types require these dependencies:

Examples

Useful Links

Join the Discord!
Resources & References

This project borrows resources and references from the following repositories: