IBotStorage interface

Replaceable storage system used by UniversalBot.

Methods

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

Reads in data from storage.

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

Writes out data to storage.

Method Details

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

Reads in data from storage.

function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)

Parameters

callback

(err: Error, data: IBotStorageData) => void

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

Writes out data to storage.

function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)

Parameters

callback

(err: Error) => void