#!/usr/bin/env node

const semver = require('semver');
const version = require('../package').engines.node;

if (!semver.satisfies(process.version, version)) {
  console.log(`Node.js version ${version} is required. You have ${process.version}.`);
  process.exit(1);
}

require('commander')
  .version(require('../package').version)
  .usage('<command> [options]')
  .command('run', 'run the bot')
  .parse(process.argv);

#!/usr/bin/env node

const semver = require('semver');
const version = require('../package').engines.node;

if (!semver.satisfies(process.version, version)) {
  console.log(`Node.js version ${version} is required. You have ${process.version}.`);
  process.exit(1);
}

require('commander')
  .version(require('../package').version)
  .usage('<command> [options]')
  .command('run', 'run the bot')
  .command('simulate', 'simulate a webhook being delivered')
  .parse(process.argv);

Add simulate as a subcommand
Add simulate as a subcommand
