Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snazzah/slash-create-template
A template for running slash commands on a webserver.
https://github.com/snazzah/slash-create-template
discord discord-bot slash-commands slash-create webserver
Last synced: 2 months ago
JSON representation
A template for running slash commands on a webserver.
- Host: GitHub
- URL: https://github.com/snazzah/slash-create-template
- Owner: Snazzah
- Created: 2020-12-17T18:23:17.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T19:59:44.000Z (over 2 years ago)
- Last Synced: 2024-05-09T17:04:13.226Z (8 months ago)
- Topics: discord, discord-bot, slash-commands, slash-create, webserver
- Language: JavaScript
- Homepage: https://slash-create.js.org
- Size: 43.9 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slash-create-template
This templates helps you in creating slash commands from a webserver.[View the TypeScript branch here](https://github.com/Snazzah/slash-create-template/tree/typescript)
| [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Snazzah/slash-create-template/tree/master) | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/h6aVmv?referralCode=snazzah) |
|:-:|:-:|## Installation
```sh
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
```### 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
```sh
npm i -g pm2
# Follow the installation process above
pm2 start pm2.json
pm2 dump # recommended
```