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
- Ensure you have the latest NodeJS and NPM installed
- Clone this repo
- Run
npm i
oryarn
Running the project
- Create
.env
file at the root level of the project - Populate it with following text:
BOT_TOKEN=<YOUR_BOT_TOKEN>
MONGODB_URI=<YOUR_MONGO_DB_ADDRESS>
MONGODB_RUNNER_URI=<MONGO_DB_ADDRESS_FOR_RUNNERS>
-
Visit @botfater and generate yourself a bot token
-
Replace
<YOUR_BOT_TOKEN>
with just generated token -
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
-
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!