Bot.ts
  • Introduction
  • Installation
  • Configuration
  • Migrate to v9
  • Troubleshooting
  • Command line
    • CLI Overview
    • Docker
    • Build
    • Start
    • Format
    • Lint
    • Test
    • Update
    • Readme
    • Final
  • Usage
    • Command
    • Listener
    • Button
    • Namespace
    • Cron
    • Logger
    • Paginator
    • Database
    • Caching
    • Custom types
  • Native commands
    • Eval
    • Help
    • Database
    • Terminal
    • Turn
    • Info
  • Command examples
    • Prefix
  • Utilities
    • Texts
    • Paths and URLs
    • Dates and durations
    • Special events
    • Other
  • Deployment
    • Production
    • Development
  • Contributing
    • Regulations
    • Coding Style
  • Annexes
    • Discord Support
Powered by GitBook
On this page
  • CLI commands
  • PackageJSON scripts

Was this helpful?

  1. Command line

CLI Overview

PreviousTroubleshootingNextDocker

Last updated 6 months ago

Was this helpful?

CLI commands

The following commands are included in . Use these sub commands via the bot command to create bot objects or any else.

Type bot <command> --help to get help about the sub command.

Command
Description

bot new

Generate a new bot

bot config

Update the bot configuration

bot add

Generate a bot component

PackageJSON scripts

Use these scripts via yarn, npm run of bun run to manage your project.

Command
Description

Compile TypeScript from ./src to ./dist directory

Build and run the bot from ./dist

Beatify files in ./src using a --no-semi config

Run ESLint on source code for code linting

Build, run and watch files

Check if TypeScript types are valids and if the bot run correctly

Update core/native files of bot.ts

Generate a readme from your bot files

Same of the build command, but optimized for production

make-bot.ts
build
start
format
lint
watch
test
update
readme
final