eko24ive / boss-master-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boss Master Bot

This project contains source files of telegram bot (@BossMasterRiBot) which helps to parse information about boss encounters from @WastelandWars

Prerequisites

MongoDB should be installed at your machine

Setting up the project

  1. Ensure you have the latest NodeJS and NPM installed
  2. Clone this repo
  3. Run npm i or yarn

Running the project

  1. Create .env file at the root level of the project
  2. Populate it with following text:
BOT_TOKEN=<YOUR_BOT_TOKEN>
MONGODB_URI=<YOUR_MONGO_DB_ADDRESS>
MONGODB_RUNNER_URI=<MONGO_DB_ADDRESS_FOR_RUNNERS>
  1. Visit @botfater and generate yourself a bot token

  2. Replace <YOUR_BOT_TOKEN> with just generated token

  3. Replace <YOUR_MONGO_DB_ADDRESS> with your MongoDB address (probably its mongodb://localhost/dmb) <MONGO_DB_ADDRESS_FOR_RUNNERS> is used for runners in /src/runners

  4. Run the project using npm start command

Debugging

It is possible to debug this solution using VSCode debug tools via Dev configuration.

Contribution

Feel free to submit a PR, ensure that your code fullfils eslint rules. Also, feel free to create an issue as well!

About

License:MIT License


Languages

Language:JavaScript 100.0%