feat: remove !h and make the bot have an in-memory dict of greeted users instead of using the backoff service

This commit is contained in:
cătălin 2025-02-26 11:53:18 +01:00
commit b2185f4174
No known key found for this signature in database
52 changed files with 404 additions and 353 deletions

View file

@ -6,11 +6,11 @@ from caribou.migrate import load_migrations
from polyfactory.factories.pydantic_factory import ModelFactory
from polyfactory.pytest_plugin import register_fixture
from src.huesoporro.infra.db import Database
from src.huesoporro.models import ChatbotSettings, Quote, User
from src.huesoporro.settings import Settings
from src.huesoporro.svc.backoff_service import BackoffService
from src.huesoporro.svc.is_mod import IsModSvc
from huesoporro.infra.db import Database
from huesoporro.models import ChatbotSettings, Quote, User
from huesoporro.settings import Settings
from huesoporro.svc.backoff_service import BackoffService
from huesoporro.svc.is_mod import IsModSvc
@pytest.fixture

View file

@ -2,8 +2,8 @@ import json
import pytest
from src.huesoporro.infra.repos import QuoteRepo, UserRepo
from src.huesoporro.models import User
from huesoporro.infra.repos import QuoteRepo, UserRepo
from huesoporro.models import User
@pytest.fixture

View file

@ -3,8 +3,8 @@ import time
import pytest
from src.huesoporro.models import ChatbotSettings, User
from src.huesoporro.svc.is_mod import IsModSvc
from huesoporro.models import ChatbotSettings, User
from huesoporro.svc.is_mod import IsModSvc
async def test_is_mod_svc_returns_true_for_channel(is_mod_svc: IsModSvc, user: User):