@buildtheearth/bot-utils
    Preparing search index...

    Function loadDir

    • Async

      Type Parameters

      • T

      Parameters

      • dir: string

        The directory to load

      • Optionalprocess: (value: T) => T

        The function to process each file

      • OptionalbaseCollection: Collection<string, T>

        The base collection to add the files to

      Returns Promise<Collection<string, T>>

      The collection of files This is a generic loadDir, the one in main bot supercedes it For main bot use, use the one in main bot

      Loads a directory of files and returns an collection of the files code contents