feat: add migrations, api bot endpoints and revamp the whole twitch backend by making use of twitchio
This commit is contained in:
parent
8799bab900
commit
4c534de47b
45 changed files with 1718 additions and 1109 deletions
11
src/huesoporro/svc/get_chatbot_settings.py
Normal file
11
src/huesoporro/svc/get_chatbot_settings.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
from src.huesoporro.infra.db import Database
|
||||
from src.huesoporro.models import ChatbotSettings, User
|
||||
|
||||
|
||||
class ChatbotSettingsGetterSvc(BaseModel):
|
||||
db: Database
|
||||
|
||||
async def run(self, user: User) -> ChatbotSettings | None:
|
||||
return await self.db.get_chatbot_settings(user=user)
|
||||
Loading…
Add table
Add a link
Reference in a new issue