summaryrefslogtreecommitdiff
path: root/views/guild_add.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/guild_add.js')
-rw-r--r--views/guild_add.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/views/guild_add.js b/views/guild_add.js
deleted file mode 100644
index cb32dc3..0000000
--- a/views/guild_add.js
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/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 GuildAddView = module.exports;
-
-// match detail view
-module.exports = class extends View {
- constructor(msg, players) {
- super(msg);
- this.players = players;
- }
-
- // players: obj, key=ign, value=player
- async text(players) {
- return Object.entries(players).map((tuple) =>
- (tuple[1] == undefined)?
- `Loading ${tuple[0]}…`
- : `Loaded ${tuple[0]}.`
- ).join("\n");
- }
-
- async respond() {
- this.response = await util.respond(this.msg,
- await this.text(this.players), this.response);
- return this.response;
- };
-}