From dc55d3876c43bd7d42862671965735759c367579 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski <48144618+SowinskiBraeden@users.noreply.github.com> Date: Sat, 16 Oct 2021 11:00:58 -0700 Subject: [PATCH 1/2] Update README --- README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83b6487..956406d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,32 @@ -# LPC-Bot -Lines Police CAD Discord Bot +### Lines Police CAD Discord Bot +![lines police cad logo](https://github.com/LinesMerrill/police-cad/lines-police-cad.png) -Official Lines Police Cad Discord bot. +This is the official Lines Police CAD bot for discord integration. It allows you to use Lines Police CAD website features right in your discord channel! + +### Requirements : +1. [Node.js](https://nodejs.org/en/) +1. [MongoDB](https://docs.mongodb.com/manual/administration/install-community/) + +### Getting Started with Code : +1. [Set Up MongoDB](#setting-up-mongodb) and start mongodb +2. Clone repo from https://github.com/SowinskiBraeden/LPC-Bot.git +3. Run `npm install` to install dependencies. +4. Edit the `index.js` file to have the your correct parameters to run the bot. +The parameters are as follows: + 1. Version + 2. Bot Token + 3. path to config + 4. mongoURI + 5. mongoDBO +1. Run `npm start` to run the `index.js` file and start the bot. +1. The bot is now ready to use. + +### Setting up MongoDB +1. Install mongodb via brew [Step by step instructions](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/) +1. Start mongodb via brew [Step by step instructions](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/#run-mongodb-community-edition) + +### Accessing the Database +1. Locally this will use the knoldus db (or whatever you specify manually) +1. launch mongo via your command-line: `mongo` +1. Use `show dbs` to see all that are available. You should see `knoldus` in the list. +1. Lets use that db: `use knoldus`. From 79db375ebae66b001e6c85ed502a5a3d0c69ec80 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski <48144618+SowinskiBraeden@users.noreply.github.com> Date: Sat, 16 Oct 2021 11:01:50 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 956406d..25aef6a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ### Lines Police CAD Discord Bot -![lines police cad logo](https://github.com/LinesMerrill/police-cad/lines-police-cad.png) +![lines police cad logo](https://github.com/Linesmerrill/police-cad/blob/master/lines-police-cad.png) This is the official Lines Police CAD bot for discord integration. It allows you to use Lines Police CAD website features right in your discord channel!