trainingbot
trainingbot copied to clipboard
A Telegram quiz chatbot to help you train and level-up your knowledge
trainingbot
A Telegram quiz chatbot to help you train and level-up your knowledge
Getting started
Requires node >= 8.0 (or set up Babel instead)
- Run
npm install
- Set these environment variables
-
telegramToken
(e.g. 123456789:AbC0dEf1GhI2jKl3M-nO4pQr5StU6vWx7Yz) -
mongoUrl
(e.g localhost:27017/trainingbot) - The bot uses MongoDB for persistence.
- Create a
challenges
collection. - Add at least one challenge document according to the format in
example-challenge-document.json
- Run
npm start
Running tests
Run mocha tests with npm test
License
MIT