{"id":13411096,"url":"https://github.com/Snazzah/slash-create","last_synced_at":"2025-03-14T16:33:53.215Z","repository":{"id":37940504,"uuid":"321798388","full_name":"Snazzah/slash-create","owner":"Snazzah","description":"🗡️ Creator and handler for Discord's slash commands","archived":false,"fork":false,"pushed_at":"2024-10-10T23:40:25.000Z","size":2996,"stargazers_count":348,"open_issues_count":3,"forks_count":47,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T01:47:49.282Z","etag":null,"topics":["discord","discord-bot","discord-interactions","discord-message-components","discord-slash-commands","hacktoberfest","slash-command","slash-commands"],"latest_commit_sha":null,"homepage":"https://slash-create.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snazzah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Snazzah","liberapay":"Snazzah","ko_fi":"Snazzah"}},"created_at":"2020-12-15T21:54:41.000Z","updated_at":"2024-10-28T17:45:55.000Z","dependencies_parsed_at":"2023-10-04T13:35:48.602Z","dependency_job_id":"ab672439-9fa8-4e64-ab68-af4e0419e73b","html_url":"https://github.com/Snazzah/slash-create","commit_stats":{"total_commits":680,"total_committers":29,"mean_commits":"23.448275862068964","dds":0.5882352941176471,"last_synced_commit":"f3411f8ae5233fb718dc23af2b5b2a2eeada1c6c"},"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fslash-create","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fslash-create/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fslash-create/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fslash-create/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snazzah","download_url":"https://codeload.github.com/Snazzah/slash-create/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243610790,"owners_count":20319028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discord-interactions","discord-message-components","discord-slash-commands","hacktoberfest","slash-command","slash-commands"],"created_at":"2024-07-30T20:01:11.348Z","updated_at":"2025-03-14T16:33:52.809Z","avatar_url":"https://github.com/Snazzah.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Snazzah","https://liberapay.com/Snazzah","https://ko-fi.com/Snazzah"],"categories":["Libraries","TypeScript"],"sub_categories":["TypeScript","JavaScript"],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"/static/textlogo.png\" height=\"50\"\u003e\n\n[![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\u0026tid=11596\u0026pid=15103\u0026bid=297399) [![discord chat](https://img.shields.io/discord/311027228177727508?logo=discord\u0026logoColor=white)](https://snaz.in/discord)\n\nCreate and sync [Discord slash commands](https://discord.com/developers/docs/interactions/application-commands).\n\n\n\u003c/div\u003e\n\n## Features\n- Multiple server support ([Express](http://expressjs.com/), [Fastify](https://fastify.io/), etc.)\n- Hook into an existing Discord bot client\n- Sync loaded commands to Discord from slash-create\n- Load commands from a folder\n- Command throttling/cooldowns\n\n## Quickstart\n\nIf you want an easy start on getting slash commands on your bot, you can use [slash-up](https://github.com/Snazzah/slash-up) to create a project using a template.\n```\nnpx slash-up init\n```\nAfter creating a project, you can edit commands to your liking and start it up with `yarn start`.\n\nYou can also deploy a slash-create template to the following services:\n\n| Cloudflare Workers | Vercel | Heroku | Railway |\n|:-:|:-:|:-:|:-:|\n| [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/Snazzah/slash-create-worker) | [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FSnazzah%2Fslash-create-vercel\u0026env=DISCORD_APP_ID,DISCORD_PUBLIC_KEY,DISCORD_BOT_TOKEN\u0026envDescription=Variables%20needed%20to%20recognize%20and%20operate%20slash%20commands.\u0026project-name=discord-interactions\u0026repo-name=discord-slash-commands\u0026demo-description=Deploy%20a%20slash-create%20server%20for%20Discord%20interactions.\u0026demo-image=https%3A%2F%2Fget.snaz.in%2F4MVTTaR.png\u0026demo-title=%2Fcreate\u0026demo-url=https%3A%2F%2Fslash-create.js.org) | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Snazzah/slash-create-template/tree/master) | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/h6aVmv?referralCode=snazzah) |\n\n## Installation\n```sh\nnpm i slash-create\n```\nOr, using yarn:\n```sh\nyarn add slash-create\n```\n\n### Using webservers\nIn order to use a specific webserver, you will need to install the dependency associated with that server. The following server types require these dependencies:\n- `AWSLambdaServer`: none technically, meant for use with [AWS Lambda](https://aws.amazon.com/lambda) and [Amazon API Gateway](https://aws.amazon.com/api-gateway), see [example](https://slash-create.js.org/#/docs/main/latest/examples/lambda)\n- `AzureFunctionServer`: none technically, meant for use with [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/), see [example](https://slash-create.js.org/#/docs/main/latest/examples/azure)\n- `BunServer`: none, meant for use in the [Bun](https://bun.sh) runtime\n- `CloudflareWorkerServer`: none, only available in the web export via `slash-create/web`\n- `ExpressServer`: `express`\n- `FastifyServer`: `fastify`\n- `GatewayServer`: none, see [example](https://slash-create.js.org/#/docs/main/latest/examples/discord-bot)\n- `GCFServer`: none technically, meant for use with [`@google-cloud/functions-framework`](https://npm.im/@google-cloud/functions-framework), see [example](https://slash-create.js.org/#/docs/main/latest/examples/gcf)\n- `VercelServer`: none, see [example](https://slash-create.js.org/#/docs/main/latest/examples/vercel)\n\n## Examples\n- [Creating a SlashCreator](https://slash-create.js.org/#/docs/main/latest/examples/basic)\n  - [Using Webservers](https://slash-create.js.org/#/docs/main/latest/examples/webserver)\n    - [Using `AWSLambdaServer`](https://slash-create.js.org/#/docs/main/latest/examples/lambda)\n    - [Using `AzureFunctionServer`](https://slash-create.js.org/#/docs/main/latest/examples/azure)\n    - [Using `GCFServer`](https://slash-create.js.org/#/docs/main/latest/examples/gcf)\n    - [Using `VercelServer`](https://slash-create.js.org/#/docs/main/latest/examples/vercel)\n  - [Using Discord Bots](https://slash-create.js.org/#/docs/main/latest/examples/discord-bot)\n- [Creating commands](https://slash-create.js.org/#/docs/main/latest/examples/command)\n\n## Useful Links\n- [**Discord Documentation on Application Commands**](https://discord.com/developers/docs/interactions/application-commands)\n- [Website](https://slash-create.js.org/) ([source](https://github.com/Snazzah/slash-create-website))\n- [Documentation](https://slash-create.js.org/#/docs/main/latest/general/welcome)\n- [Commands Template](https://github.com/Snazzah/slash-create-template)\n- [GitHub](https://github.com/Snazzah/slash-create)\n- [NPM](https://www.npmjs.com/package/slash-create)\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca target=\"_blank\" href=\"https://snaz.in/discord\" title=\"Join the Discord!\"\u003e\n        \u003cimg  src=\"https://discordapp.com/api/guilds/311027228177727508/widget.png?style=banner2\" height=\"76px\" draggable=\"false\" alt=\"Join the Discord!\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n##### Resources \u0026 References\nThis project borrows resources and references from the following repositories:\n- [dbots.js](https://github.com/dbots-pkg/dbots.js)\n- [eris](https://github.com/abalabahaha/eris)\n- [discord.js](https://github.com/discordjs/discord.js)\n- [Commando](https://github.com/discordjs/Commando)\n- [slash-worker](https://github.com/A5rocks/slash-worker)\n- [slash-commands](https://github.com/MeguminSama/discord-slash-commands)\n- [discord-interactions](https://github.com/discord/discord-interactions-js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnazzah%2Fslash-create","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSnazzah%2Fslash-create","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnazzah%2Fslash-create/lists"}