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
  • Usage
  • Which files are update?
  • Customize native file and ignore it during an update
  • You get an error while using the command

Was this helpful?

  1. Command line

Update

The bot.ts core files updater command.

This script overwrite your files, please read the entierty of this page before using this script!

Usage

npm run update
yarn update
bun run update

Which files are update?

All files in the src/app folder are affected by the update. But also all the files which correspond with the following glob pattern are affected too: src/**/*.native.ts

Here is a list of special files that will always be updated.

.gitattributes
.gitignore
tsconfig.json
src/index.ts

Customize native file and ignore it during an update

If you want to customize a native file (*.native.ts), the first step is to disable updates on this file. It's easy, just remove the native part of file name. (e.g. eval.native.ts becomes eval.ts)

You get an error while using the command

If you get an error telling you that your Gulpfile has been changed, don't worry! You simply have to rerun the command in order to use the new Gulpfile to update the framework.

PreviousTestNextReadme

Last updated 6 months ago

Was this helpful?