Options
All
  • Public
  • Public/Protected
  • All
Menu

Message client logging to the console. Uses color and renders markdown

Hierarchy

  • ConsoleMessageClient

Implements

  • MessageClient
  • SlackMessageClient

Index

Constructors

constructor

Properties

Private connectionConfig

config to use to format URLs to call back the source SDM

Private linkedChannel

linkedChannel: string

markedOptions

markedOptions: MarkedOptions

Private sender

sender: Sender

Methods

addressChannels

  • addressChannels(msg: string | SlackMessage, channels: string | string[], options?: MessageOptions): Promise<any>

addressUsers

  • addressUsers(msg: string | SlackMessage, users: string | string[], options?: MessageOptions): Promise<any>

dateString

  • dateString(): string

Private renderAction

  • renderAction(channel: string, action: Action, actionKey: string): string

respond

  • respond(msg: string | SlackMessage, options?: MessageOptions): Promise<any>

send

  • send(msg: any, destinations: Destination | Destination[], options?: MessageOptions): Promise<any>

Private writeToChannel

  • writeToChannel(channels: string[] | string, markdown: string): Promise<any>
  • Apply consistent formatting to mimic writing to a Slack channel

    Parameters

    • channels: string[] | string
    • markdown: string

    Returns Promise<any>

Generated using TypeDoc