readme
							parent
							
								
									404412da9e
								
							
						
					
					
						commit
						d3614f4cd6
					
				| @ -1,29 +1,3 @@ | |||||||
| # slash-create-template in TypeScript | # dntb | ||||||
| This templates helps you in creating slash commands in TypeScript from a webserver. |  | ||||||
| 
 | 
 | ||||||
| | [](https://heroku.com/deploy?template=https://github.com/Snazzah/slash-create-template/tree/typescript) | [](https://railway.app/new/template/GL2qbv?referralCode=snazzah) | | devnics trial discord bot | ||||||
| |:-:|:-:| |  | ||||||
| 
 |  | ||||||
| ## Installation |  | ||||||
| ```sh |  | ||||||
| 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 |  | ||||||
| ```sh |  | ||||||
| npm i -g pm2 |  | ||||||
| # Follow the installation process above |  | ||||||
| pm2 start pm2.json |  | ||||||
| pm2 dump # recommended |  | ||||||
| ``` |  | ||||||
|  | |||||||
					Loading…
					
					
				
		Reference in New Issue