IEEEComputerSocietyUNB / ProjetoChatbot

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

Periodic messages #39

Open williamsimiao opened 6 years ago

williamsimiao commented 6 years ago

PR Description

Adiciona a funcionalidade de mensagens enviadas pelo bot a fim de lembrar o usuário de conversar com o bot. O usuário pode determinar o intervalo, em dias, que deseja receber esse lembrete usando o comando \lembrete.

New Feature Submissions

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

  1. [x] Does your submission pass all the tests?
  2. [x] Have you lint your code locally prior to submission?
  3. [x] Have you written proper tests to your added code?

New Dialog Submissions

User messages have - -, bot messages have -

  1. [ ] Does all your user messages have lower letters?
  2. [ ] Have you lint your dialogs locally prior to submission?
  3. [ ] Have you written proper tests to your added dialogs on test_dialogs?
  4. [ ] Does your dialog have an existing category? If not, did you create it?

Changes to Core Features

codeclimate[bot] commented 6 years ago

Code Climate has analyzed commit a2325357 and detected 0 issues on this pull request.

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

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

View more on Code Climate.

codecov[bot] commented 6 years ago

Codecov Report

Merging #39 into master will increase coverage by 4.56%. The diff coverage is 91.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
+ Coverage   81.42%   85.98%   +4.56%     
==========================================
  Files           6        7       +1     
  Lines         280      364      +84     
  Branches       22       26       +4     
==========================================
+ Hits          228      313      +85     
+ Misses         45       42       -3     
- Partials        7        9       +2
Impacted Files Coverage Δ
bot/application.py 86.38% <89.47%> (+6.8%) :arrow_up:
bot/periodic_messages_util.py 94.28% <94.28%> (ø)

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 4a21ca4...d6e8d2a. Read the comment docs.

williamsimiao commented 6 years ago

users_custom_invervals.json.zip Segue um exemplo do arquivo JSON para os intervalos customizados por usuário, a chave do dicionário é o ID do usuário e o valor é o intervalo em dias.

tapumar commented 6 years ago

@williamsimiao , onde o arquivo "users_custom_invervals.json" é criado?

alexandrebarbaruiva commented 6 years ago

@williamsimiao esta PR foi criada dia 30 de julho, atualiza ela e conserta as revisões!