diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-18 19:32:36 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-18 19:32:36 +0200 |
| commit | 1805e6d82a54a527323b14f47f31f35967541ce3 (patch) | |
| tree | c505f831f9516c1c018176a4b28d9cefec0e4d57 /commands | |
| parent | ad88b9a19cd5438d18be061db08511183b6a20bf (diff) | |
| download | discordbot-1805e6d82a54a527323b14f47f31f35967541ce3.tar.gz discordbot-1805e6d82a54a527323b14f47f31f35967541ce3.zip | |
fix undefineds; add simple account-ign storage
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/vainsocial/match.js | 1 | ||||
| -rw-r--r-- | commands/vainsocial/matches.js | 1 | ||||
| -rw-r--r-- | commands/vainsocial/me.js | 35 | ||||
| -rw-r--r-- | commands/vainsocial/user.js | 1 |
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 } ] |
