summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/vainsocial/match.js1
-rw-r--r--commands/vainsocial/matches.js1
-rw-r--r--commands/vainsocial/me.js35
-rw-r--r--commands/vainsocial/user.js1
4 files changed, 38 insertions, 0 deletions
diff --git a/commands/vainsocial/match.js b/commands/vainsocial/match.js
index 08f52f5..ba24baf 100644
--- a/commands/vainsocial/match.js
+++ b/commands/vainsocial/match.js
@@ -23,6 +23,7 @@ module.exports = class ShowMatchCommand extends Commando.Command {
label: "name",
prompt: "Please specify your in game name (Case Sensitive).",
type: "string",
+ default: "?",
min: 3,
max: 16
}, {
diff --git a/commands/vainsocial/matches.js b/commands/vainsocial/matches.js
index adce644..7eaa513 100644
--- a/commands/vainsocial/matches.js
+++ b/commands/vainsocial/matches.js
@@ -22,6 +22,7 @@ module.exports = class ShowMatchesCommand extends Commando.Command {
label: "name",
prompt: "Please specify your in game name (Case Sensitive).",
type: "string",
+ default: "?",
min: 3,
max: 16
} ]
diff --git a/commands/vainsocial/me.js b/commands/vainsocial/me.js
new file mode 100644
index 0000000..4de7c8f
--- /dev/null
+++ b/commands/vainsocial/me.js
@@ -0,0 +1,35 @@
+#!/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 RememberUserCommand extends Commando.Command {
+ constructor(client) {
+ super(client, {
+ name: "vainsocial-me",
+ aliases: ["vme"],
+ group: "vainsocial",
+ memberName: "vainsocial-me",
+ description: "Remembers a users's in game name.",
+ details: oneLine`
+Store your in game name for quicker access to other commands.
+ `,
+ examples: ["vme shutterfly"],
+
+ args: [ {
+ key: "name",
+ label: "name",
+ prompt: "Please specify your in game name (Case Sensitive).",
+ type: "string",
+ min: 3,
+ max: 16
+ } ]
+ });
+ }
+ async run(msg, args) {
+ await responses.rememberUser(msg, args);
+ }
+};
diff --git a/commands/vainsocial/user.js b/commands/vainsocial/user.js
index 95bb86f..43aecac 100644
--- a/commands/vainsocial/user.js
+++ b/commands/vainsocial/user.js
@@ -24,6 +24,7 @@ Display VainSocial lifetime statistics from Vainglory
label: "name",
prompt: "Please specify your in game name (Case Sensitive).",
type: "string",
+ default: "?",
min: 3,
max: 16
} ]