UNPKG

recime-bot-runtime

Version:

This runtime is intended to run inside a micro-service container with platform specific integration and module interpreter.

25 lines (24 loc) 682 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var request = require("request"); var Bot = /** @class */ (function () { function Bot(id) { this.id = id; } Bot.prototype.get = function () { var _this = this; return new Promise(function (resolve, reject) { request({ uri: "https://proxy-api.recime.io/v1/bots/" + _this.id, json: true }, function (err, response, body) { if (err) { return reject(err); } resolve(body); }); }); }; return Bot; }()); exports.Bot = Bot;