Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

exportBot

  • exportBot(botId: string): Promise<Buffer>
  • It will extract the bot's folder to an archive (tar.gz).

    Parameters

    • botId: string

      The ID of the bot to extract

    Returns Promise<Buffer>

getAllBots

  • getAllBots(): Promise<Map<string, BotConfig>>

getBotById

  • getBotById(botId: string): Promise<BotConfig | undefined>

importBot

  • importBot(botId: string, archive: Buffer, allowOverwrite?: undefined | false | true): Promise<void>
  • Allows to import directly an archive (tar.gz) in a new bot.

    Parameters

    • botId: string

      The ID of the new bot (or an existing one)

    • archive: Buffer

      The buffer of the archive file

    • Optional allowOverwrite: undefined | false | true

    Returns Promise<void>

Generated using TypeDoc