No description
  • TypeScript 100%
Find a file
2023-05-02 21:39:34 +09:00
src fix: eslint require error 2023-04-23 13:01:59 +09:00
.eslintrc.js feat: setup sort imports plugin 2023-03-19 23:56:54 +09:00
.gitignore feat: start script 2022-07-22 22:54:01 +09:00
.prettierrc fix: eslint param decorator error 2023-04-23 13:01:59 +09:00
config.example.json Initial commit 2022-07-22 22:46:31 +09:00
package.json chore: update pnpm 2023-05-02 21:39:34 +09:00
pnpm-lock.yaml chore: update pnpm 2023-05-02 21:39:34 +09:00
README.md docs: require pnpm on readme 2023-03-19 23:49:49 +09:00
renovate.json feat: setup sort imports plugin 2023-03-19 23:56:54 +09:00
tsconfig.json feat: setup sort imports plugin 2023-03-19 23:56:54 +09:00

Command.TS V5 QuickStart Template

This is a template of discord bot made with @pikokr/command.ts v5 with slash commands.

Creating an App

Youll need to have Node 16.9.0 or later version on your local development machine (but its 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.

npx degit pikokr/command.ts-v5-template my-app
cd my-app

corepack 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.