Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add since-mode #11

Closed
10 tasks done
egregors opened this issue Sep 14, 2019 · 4 comments
Closed
10 tasks done

Add since-mode #11

egregors opened this issue Sep 14, 2019 · 4 comments
Assignees

Comments

@egregors
Copy link
Collaborator

egregors commented Sep 14, 2019

since-mode is counting and showing numbers of days since last mentation of our favorite themes.

It may be two option probably: catch themes buzz words in the messages, or use /since_ command.

For example:

user: ну вообще, ООП решает эту проблему
vldc_bot: This is are 0 days since ООП discussion

or

user: современный php – не такой плохой язык, им вполне можно пользоваться
user2: /since_php
vldc_bot: This is are 2 days since Современный ПеХеПе discussion

For these two options, we need the preselected list of our favorite themes.
Alternativly, we may allow users creating they owns since-words, like:

user: да макось вообще не позволяет ничего кастомизировать, толи дело арч
user2: /since бест ОС евер
vldc_bot: This is are 0 days since бест ОС евер discussion

В таком случае можно добавить вывод всех since за все время:

user: /since_all
vldc_bot:
ООП: 0 days
Современный ПеХеПе: 20 days
бест ОС евер: 2 days

Obviously, we need some persistent storage for this kind of stuff. Let's say it will be mongo

  • add skill
  • add adapter for persistent storage
    • add compose to run bot + storage
    • add .env file for configuration compose (token, chat name, mongo stuff)
    • add mongo into compose (everything become better with mongo)
    • add mongo driver to requirements
    • some way to backups? neh
  • update docs | readme | cmd info in the come skill
  • since cmd
  • since_all cmd
@egregors egregors added help wanted Extra attention is needed since-mode labels Sep 14, 2019
@C-Pro
Copy link
Collaborator

C-Pro commented Sep 16, 2019

stateless but with persistent storage? what do you mean?

@egregors
Copy link
Collaborator Author

I mean, I don't wanna store any state in the bot container \ instance. At this case, I believe we may use something like Cloud Firestore Do we love Google, hah?

@C-Pro
Copy link
Collaborator

C-Pro commented Sep 16, 2019

We totally can, but I do not think we shoud. It would be way easier to fire up mongo alongside bot instance via docker-compost
We do not need firebase features like scalability, offline syncronization, realtime updates, network hiccups, occasional unexpected money spending or quota-reaching :)

@egregors
Copy link
Collaborator Author

Make sense. I'll change the issue description.

@egregors egregors mentioned this issue Sep 18, 2019
@egregors egregors self-assigned this Sep 23, 2019
@egregors egregors removed the help wanted Extra attention is needed label Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants