Skip to content

collierrgbsitisfise/js_quiz_bot

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published