Skip to content

Bot telegram trắc nghiệm tiếng anh(python, mongodb, redis, ansible, docker )

Notifications You must be signed in to change notification settings

minhvu2510/telegram_bot_english

Repository files navigation

Trắc nghiệm toeic theo chủ đề

Test bot

  • Search trên telegram bot 'LoveYourSmile'
  • Bắt đầu bằng lệnh '/study'

Các bước kiểm tra

  • Từ vựng được chia theo chủ đề, chọn chủ để để tiến hành ôn tập.
  • Có kết quả số câu đúng khi kết thúc kiểm tra
  • Những câu sai sẽ được lưu vào topic 'memo' để kiểm tra lại, vào tự xóa sau khi trả lời đúng hoặc sau 7 ngày
Chọn chủ đề Kiểm tra Kiểm tra lại câu sai
image image CoreUI Pro Bootstrap Admin Template

Build và deploy code

  • Thay đổi thông tin tại file docker /.env (build 3 container: redis, bot-core, mongo)
  • Chạy lệnh sau để build tại localhost:
set .env && docker-compose up -d --build

Screenshot from 2020-09-23 16-11-05

Deploy code lên host:

  • Thay host tại file /deployment/hosts
  • Chạy ansible để deploy + run container trên host:
ansible-playbook -i deployment/hosts deployment/site.yml -l telebot -t telebot -u {username}

About

Bot telegram trắc nghiệm tiếng anh(python, mongodb, redis, ansible, docker )

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages