@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Function defineBot

    • Declare a bot factory. Returns the SAME function (typed and branded), so it can be default-exported for botmesh dev and called directly with a real provider for production.

      Type Parameters

      Parameters

      • factory: F

        (provider) => Bot — build your bot around the given provider.

      Returns F

      when factory is not a function.