Class default

Contains methods for interacting with Carter.

Hierarchy

  • default

Constructors

Properties

apiKey: string
history: CarterInteraction[] = []
logger: Logger = ...
skills: CarterSkill[] = []
speakDefault: boolean = false

Methods

  • Returns the average response time for a given number of minutes if given. If not given, the average response time for your the entire history is returned. If there is either no history or no interactions in the given time period, the return value will be undefined.

    Parameters

    • Optional minutes: number

    Returns undefined | number

  • Parameters

    • context: string
    • Optional userId: string

    Returns Promise<{
        error: string;
        success: boolean;
    }>

  • Returns the response time of your last interaction with Carter

    Returns undefined | number

  • Parameters

    • text: string
    • Optional userId: string
    • Optional context: string
    • Optional speak: boolean

    Returns Promise<CarterInteraction>

Generated using TypeDoc