This templates helps you in creating slash commands in TypeScript from a webserver.
npx degit Snazzah/slash-create-template#typescript slash-commands
cd slash-commands
npm i -g yarn
yarn
cp .env.example .env # this copies the .env file, edit variables in this file!
# Create and edit commands in the `commands` folder
yarn build
yarn start
npm i -g pm2
# Follow the installation process above
pm2 start pm2.json
pm2 dump # recommended