Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paring-chan/command.ts-v5-template
Template for command.ts v5
https://github.com/paring-chan/command.ts-v5-template
Last synced: about 2 months ago
JSON representation
Template for command.ts v5
- Host: GitHub
- URL: https://github.com/paring-chan/command.ts-v5-template
- Owner: paring-chan
- Created: 2022-07-22T13:47:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T17:40:51.000Z (2 months ago)
- Last Synced: 2024-10-29T18:59:27.871Z (2 months ago)
- Language: TypeScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 0
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Command.TS V5 QuickStart Template
This is a template of discord bot made with [@pikokr/command.ts](https://github.com/pikokr/command.ts) v5 with slash commands.
## Creating an App
You’ll need to have Node 16.9.0 or later version on your local development machine (but it’s not required on the server). We recommend using the latest LTS version. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
To create a new app, you should use [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b).```shell
npx degit pikokr/command.ts-v5-template my-app
cd my-appcorepack enable
pnpm i
pnpm dev
```Runs the app in development mode.
### Install Dependencies
You can install dependencies with `pnpm install`(this template is configured to use only pnpm for package manager). This must be done the first time you create the app.
### Run the bot in development mode.
You can run your bot in development mode with `pnpm dev`
### Build the bot and run for production
If you use `pnpm build` without errors in your code, the build file will appear in `dist` folder.
You can execute this file with `pnpm start` for your production.