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 |
---|---|---|---|
npm i slash-create
Or, using yarn:
yarn add slash-create
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:
AWSLambdaServer
: none technically, meant for use with AWS Lambda and Amazon API Gateway, see exampleAzureFunctionServer
: none technically, meant for use with Azure Functions, see exampleBunServer
: none, meant for use in the Bun runtimeCloudflareWorkerServer
: none, only available in the web export via slash-create/web
ExpressServer
: express
FastifyServer
: fastify
GatewayServer
: none, see exampleGCFServer
: none technically, meant for use with @google-cloud/functions-framework
, see exampleVercelServer
: none, see exampleThis project borrows resources and references from the following repositories: