WEEE-Open / weeelab-telegram-bot

Telegram bot for querying the weeelab log and some additional cool stuff.
GNU General Public License v3.0
8 stars 4 forks source link

Adds a basic version of a command handler #33

Closed aitorres closed 5 years ago

aitorres commented 5 years ago

This pull request adds a basic version of a Command Handler class that incorporates a constructor and public methods to handle each of the allowed bot commands. This improves the main method's readability, and makes it easier to maintain in the future.

The Command Handler can be refactored or improved; I tried to make it as readable and useful as possible, but any suggestions are welcome.

This pull request also includes one new pattern at the .gitignore file, to ignore the pycache directory on git.

The pull request is submitted as a fix for issue #31

lvps commented 5 years ago

Awesome, thanks!