Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 553 Bytes

improvements.md

File metadata and controls

26 lines (19 loc) · 553 Bytes

Global

  • pylint
  • TAB to spaces
  • config file
  • type annotations
  • write tests

db_user

  • check_user bad func name
  • = -> is
  • func look at db twice, better to look one-time
  • func need to check user directly instead is checking user from messages

Architecture

  • async using
  • telegram -> com/val to local objects -> bot logic -> bot answer to telegram API -> answer to telegram
  • use db instead python dictionary

CI/CD

  • develop branch
  • heroku config vars
  • github workflow