gretmn102 / gretmn102/WinniePoohBot

feat: запоминать историю поздравлений

Open
#7 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Это нужно, чтобы не поздравлять дважды в сутки.

SQLite в качестве БД вполне пойдет.

У рядов (пара (день рождение * поздравление)) нету никакого ID. Соответственно, единственный способ запоминать в БД ряд — запоминать его целиком. Можно, конечно, хеш сумму вычислять поздравления и запоминать в БД. Ряды могут меняться пользователем в любое время. Т.е. получается, если хоть что-то изменить в поздравлении, то программа засчитает это за новый ряд. Это ж ничего страшного?

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by tracing how birthday rows and congratulation messages are read and sent, then inspect the current Google-table persistence flow before choosing how SQLite history should identify a row. Done means the bot does not send the same birthday/congratulation pair more than once per day, while changed user content is handled consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite, typescript
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.