summaryrefslogtreecommitdiff
path: root/views/simple.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-11 20:08:25 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-11 20:08:25 +0200
commit01a0f341cd19247c9b3d47bf62edefcb0c1545bc (patch)
treef3f2f3a10989bac90b78f5e915e62800c49c7e38 /views/simple.js
parent3a857d9795d467fcb91910feb23e12ac3c18393c (diff)
downloaddiscordbot-01a0f341cd19247c9b3d47bf62edefcb0c1545bc.tar.gz
discordbot-01a0f341cd19247c9b3d47bf62edefcb0c1545bc.zip
guild view: sort by fame, show role; add guild role cmd
Diffstat (limited to 'views/simple.js')
-rw-r--r--views/simple.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/simple.js b/views/simple.js
new file mode 100644
index 0000000..5e8701a
--- /dev/null
+++ b/views/simple.js
@@ -0,0 +1,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;
+ }
+}