Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 725 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 725 Bytes

trainingbot

A Telegram quiz chatbot to help you train and level-up your knowledge

Screenshot

Getting started

Requires node >= 8.0 (or set up Babel instead)

  1. Run npm install
  2. Set these environment variables
  3. telegramToken (e.g. 123456789:AbC0dEf1GhI2jKl3M-nO4pQr5StU6vWx7Yz)
  4. mongoUrl (e.g localhost:27017/trainingbot)
  5. The bot uses MongoDB for persistence.
  6. Create a challenges collection.
  7. Add at least one challenge document according to the format in example-challenge-document.json
  8. Run npm start

Running tests

Run mocha tests with npm test

License

MIT