Skip to content

SowinskiBraeden/police-cad-bot

Repository files navigation

Lines Police CAD Discord Bot

lines police cad logo

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
  2. MongoDB

Getting Started with Code :

  1. Set 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
  5. Run npm start to run the index.js file and start the bot.
  6. The bot is now ready to use.

Setting up MongoDB

  1. Install mongodb via brew Step by step instructions
  2. Start mongodb via brew Step by step instructions

Accessing the Database

  1. Locally this will use the knoldus db (or whatever you specify manually)
  2. launch mongo via your command-line: mongo
  3. Use show dbs to see all that are available. You should see knoldus in the list.
  4. Lets use that db: use knoldus.