You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
suhas 404412da9e code 2 years ago
.vscode code 2 years ago
prisma code 2 years ago
src code 2 years ago
.editorconfig code 2 years ago
.eslintrc.js code 2 years ago
.gitignore code 2 years ago
.prettierrc code 2 years ago
README.md code 2 years ago
app.json code 2 years ago
err.txt code 2 years ago
out.txt code 2 years ago
package.json code 2 years ago
pm2.json code 2 years ago
pnpm-lock.yaml code 2 years ago
slash-up.config.js code 2 years ago
tsconfig.json code 2 years ago

README.md

slash-create-template in TypeScript

This templates helps you in creating slash commands in TypeScript from a webserver.

Deploy Deploy on Railway

Installation

npx slash-up init typescript slash-commands
cd slash-commands
# edit variables in the ".env" file!
# Create and edit commands in the `commands` folder
npx slash-up sync
yarn build
yarn start

From Railway/Heroku

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.

Using PM2

npm i -g pm2
# Follow the installation process above
pm2 start pm2.json
pm2 dump # recommended