Options
All
  • Public
  • Public/Protected
  • All
Menu

BASIC system class for extra manipulation of bot behaviour.

Hierarchy

  • SystemKeywords

Index

Constructors

constructor

Properties

Private Readonly deployer

deployer: GBDeployer

Reference to the deployer service.

min

min: GBMinInstance

Reference to minimal bot instance.

Methods

convert

  • convert(src: any, dest: any): Promise<void>
  • Converts a drive file from a place to another .

    Supported sources csv, doc, docx, odp, ods, odt, pot, potm, potx, pps, ppsx, ppsxm, ppt, pptm, pptx, rtf, xls, xlsx

    example

    CONVERT "customers.xlsx" TO "reports" + today + ".pdf"

    Parameters

    • src: any
    • dest: any

    Returns Promise<void>

copyFile

  • copyFile(src: any, dest: any): Promise<any>

createFolder

  • createFolder(name: string): Promise<any>

find

  • find(file: string, ...args: any[]): Promise<any>
  • Finds a value or multi-value results in a tabular file.

    example

    rows = FIND "file.xlsx", "A2=active" i = 1 do while i < ubound(row) row = rows[i] send sms to "+" + row.mobile, "Hello " + row.namee + "! " loop

    Parameters

    • file: string
    • Rest ...args: any[]

    Returns Promise<any>

generatePassword

  • generatePassword(): string

get

  • get(file: string, address: string): Promise<any>

getByHttp

  • getByHttp(url: string): Promise<any>

getFileContents

  • getFileContents(url: any): Promise<void>

getRandomId

  • getRandomId(): Promise<any>

getStock

  • getStock(symbol: any): Promise<any>

gotoDialog

  • gotoDialog(from: string, dialogName: string): Promise<void>

Private internalGetDocument

  • internalGetDocument(client: any, baseUrl: any, path: string, file: string): Promise<any>

numberOnly

  • numberOnly(text: string): Promise<string>

postByHttp

  • postByHttp(url: string, data: any): Promise<any>

save

  • save(file: string, ...args: any[]): Promise<any>
  • Saves the content of several variables to a new row in a tabular file.

    exaple

    SAVE "customers.xlsx", name, email, phone, address, city, state, country

    Parameters

    • file: string
    • Rest ...args: any[]

    Returns Promise<any>

sendEmail

  • sendEmail(to: any, subject: any, body: any): Promise<any>

sendSmsTo

  • sendSmsTo(mobile: any, message: any): Promise<void>

set

  • set(file: string, address: string, value: any): Promise<any>

shareFolder

  • shareFolder(folderReference: any, email: string, message: string): Promise<void>

talkTo

  • talkTo(mobile: any, message: string): Promise<void>

wait

  • wait(seconds: number): Promise<void>

Generated using TypeDoc