blob: 5e8701a3fff2b22faf440d8995cac5e979346f22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/node
/* jshint esnext:true */
"use strict";
const View = require("./view"),
util = require("../util"),
api = require("../api"),
strings = require("../strings"),
oneLine = require("common-tags").oneLine;
const SimpleView = module.exports;
// just respond with a text
module.exports = class extends View {
async text(txt) {
return txt;
}
async respond(text) {
this.response = await util.respond(this.msg,
await this.text(text), this.response);
return this.response;
}
}
|