This templates helps you in creating slash commands from a webserver.
View the TypeScript branch here
npx slash-up init js slash-commands
cd slash-commands
# this edit variables in the ".env" file!
# Create and edit commands in the `commands` folder
npx slash-up sync
yarn start
For Railway and Heroku users, you must sync commands locally to push any command changes to Discord. You can do this by using slash-up sync
within your Git repository.
Heroku users will have their commands synced when they initially deploy to Heroku.
npm i -g pm2
# Follow the installation process above
pm2 start pm2.json
pm2 dump # recommended