You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mari
834f6adb71
|
7 months ago | |
---|---|---|
.idea | 8 months ago | |
data | 7 months ago | |
src | 7 months ago | |
.dockerignore | 7 months ago | |
.editorconfig | 8 months ago | |
.eslintrc.cjs | 7 months ago | |
.gitignore | 8 months ago | |
.prettierrc | 8 months ago | |
Dockerfile | 7 months ago | |
README.md | 8 months ago | |
app.json | 8 months ago | |
package-lock.json | 7 months ago | |
package.json | 7 months ago | |
pm2.json | 8 months ago | |
slash-up.config.js | 8 months ago | |
tsconfig.json | 8 months ago |
README.md
slash-create-template in TypeScript
This templates helps you in creating slash commands in TypeScript from a webserver.
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