Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.21 KB

TELEGRAM JS QUIZ BOT

CircleCI

Questions(with answers) are parsed from next repo: https://github.com/lydiahallie/javascript-questions

Main flow
  • Get questions Alt text
  • Select answer from provided variants Alt text
  • Receive correct answer with explanation Alt text

Requirements !

  • node >= 8.x
  • redis (is used to persist user answer), by default settings answer should be send in terms of 5 minutes

Provide next env variabels

$ export botToken=<tokenValue> # bot token (https://tlgrm.ru/docs/bots)
$ export redisHost=<hostValue> # default fallback is 'localhost'
$ export redisPort=<porttValue> # default fallback is 6379

Parse questions from .md[format] in .json[format]

Installation and run

$ npm i
$ npm run start:dev