discord-bot-rss-feed/discord-bot-core/command.js
benji7425 d6bc7b631b git subrepo pull discord-bot-core
subrepo:
  subdir:   "discord-bot-core"
  merged:   "180d069"
upstream:
  origin:   "git@github.com:benji7425/discord-bot-core.git"
  branch:   "master"
  commit:   "180d069"
git-subrepo:
  version:  "0.3.1"
  origin:   "???"
  commit:   "???"
2017-09-24 21:07:35 +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;
}
};