discord-bot-rss-feed/discord-bot-core/Command.js
benji7425 60efeeebe8 git subrepo pull discord-bot-core
subrepo:
  subdir:   "discord-bot-core"
  merged:   "9f209e1"
upstream:
  origin:   "git@github.com:benji7425/discord-bot-core.git"
  branch:   "master"
  commit:   "9f209e1"
git-subrepo:
  version:  "0.3.1"
  origin:   "???"
  commit:   "???"
2017-09-24 22:01:23 +01:00

12 lines
308 B
JavaScript

module.exports = class Command {
/**@param param */
constructor({ name, description, syntax, admin, invoke }) {
this.name = name;
this.description = description;
this.syntax = syntax;
this.admin = admin;
this.invoke = invoke;
this.expectedParamCount = this.syntax.split(/ +/).length - 1;
}
};