IEEEComputerSocietyUNB / ProjetoChatbot

A telegram bot to help you deal with emotions on a daily basis
MIT License
12 stars 3 forks source link

Emotion charts #59

Closed jeffersonlsz closed 6 years ago

jeffersonlsz commented 6 years ago

PR Description

This pull request aims to provide a way to check the emotional state of the user in a certain moment. The user must enter the '/emotions' command and a menu with 5 possible options will be presented. The user must choose the option which better describes how is it feeling in that moment.

Also, the command '/emotionschart' are available to present a chart that shows the frequencies associated for each possible emotional state. The user must have had used that option at least once in order to have a chart generated.

Fixes: #59

New Feature Submissions

To run tests locally, use make if you're on Mac or Linux.

New Dialog Submissions

User messages have - -, bot messages have -

Changes to Core Features

codeclimate[bot] commented 6 years ago

Code Climate has analyzed commit 720a91ea and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 93.1% (80% is the threshold).

This pull request will bring the total coverage in the repository to 92.2% (-0.8% change).

View more on Code Climate.

codecov[bot] commented 6 years ago

Codecov Report

Merging #59 into master will increase coverage by 0.74%. The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   84.06%   84.81%   +0.74%     
==========================================
  Files           5        6       +1     
  Lines         182      270      +88     
  Branches       15       20       +5     
==========================================
+ Hits          153      229      +76     
- Misses         25       33       +8     
- Partials        4        8       +4
Impacted Files Coverage Δ
bot/dbutils.py 88.46% <88.46%> (ø)
bot/application.py 85.07% <89.06%> (+0.35%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 25ed5ca...f543867. Read the comment docs.

jeffersonlsz commented 6 years ago

@alexandrebarbaruiva feito!

codecov-io commented 6 years ago

Codecov Report

Merging #59 into master will decrease coverage by 0.53%. The diff coverage is 81.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
- Coverage   81.96%   81.42%   -0.54%     
==========================================
  Files           5        6       +1     
  Lines         183      280      +97     
  Branches       15       22       +7     
==========================================
+ Hits          150      228      +78     
- Misses         29       45      +16     
- Partials        4        7       +3
Impacted Files Coverage Δ
bot/config_reader.py 100% <100%> (ø) :arrow_up:
bot/application.py 79.57% <77.38%> (-4.93%) :arrow_down:
bot/dbutils.py 96.15% <96.15%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c9960ba...d137b71. Read the comment docs.