From 112556ad8dcd72ef227268dfe7360898be2a5d87 Mon Sep 17 00:00:00 2001 From: Miikka Virtanen Date: Mon, 24 Jul 2017 02:46:55 +0300 Subject: [PATCH] Update requirements and add a start command to package.json --- README.md | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 438cc76..0955cee 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ Moderators and admins can then reply to these threads, and these responses are r Inspired by Reddit's modmail system. ## Setup -1. Install Node.js 6 or higher +1. Install Node.js 8 or higher 2. Clone or download this repository 3. Create a Discord server to be used as the modmail inbox 4. Make a copy of the file `config.example.json` in the same folder and name the copy `config.json`. Open the file and fill in the values. 5. Install dependencies: `npm install` 6. Add bot to servers, and make sure to give it proper permissions on the mail server. -7. Run the bot: `node src/index.js` +7. Run the bot: `npm start` ## Commands diff --git a/package.json b/package.json index 9d00e65..3259666 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "license": "MIT", "main": "src/index.js", "scripts": { + "start": "node src/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "",