summaryrefslogtreecommitdiff
path: root/commands/vainsocial/match.js
blob: 8f4a5a43433bf5c125366f73dbcef1ef28fc5947 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/node
/* jshint esnext:true */
"use strict";

const Commando = require("discord.js-commando"),
    oneLine = require("common-tags").oneLine,
    responses = require("../../responses");

module.exports = class ShowMatchCommand extends Commando.Command {
    constructor(client) {
        super(client, {
            name: "vainsocial-match",
            aliases: ["vm"],
            group: "vainsocial",
            memberName: "vainsocial-match",
            description: "Show a user's match in detail.",
            examples: ["vm shutterfly 1"],
            argsType: "multiple",
            argsCount: 2,

            args: [ {
                key: "name",
                label: "name",
                prompt: "Please specify your in game name (Case Sensitive).",
                type: "string",
                min: 3,
                max: 16
            }, {
                key: "number",
                label: "number",
                prompt: "Please specify how far you want to go back in history. Use 1 or leave out for the latest match.",
                type: "integer",
                default: 1,
                min: 1,
                max: 10
            } ]
        });
    }
    async run(msg, args) {
        await responses.showMatch(msg, args);
    }
};