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
  • Create a namespace
  • CLI pattern

Was this helpful?

  1. Usage

Namespace

Namespaces are simply files in which you can export stuff that you will use in your commands, like utils.

PreviousButtonNextCron

Last updated 6 months ago

Was this helpful?

Create a namespace

You must use the to create your namespaces to automatically create links between app.ts and your namespace. This will allow you to use its content directly via the app object without having to pollute your file with an additional import line.

CLI pattern

bot add namespace
CLI