mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -4,7 +4,7 @@ from typing import Literal
|
||||
from httpx import AsyncClient
|
||||
|
||||
from config import config, StreamerConfig
|
||||
from services.twitch import State
|
||||
from services.twitch_state import State
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -11,22 +11,14 @@ from twitchAPI.object.eventsub import StreamOnlineEvent, ChannelUpdateEvent
|
||||
|
||||
import aiofiles
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from config import config, StreamerConfig
|
||||
from services.notification import notify
|
||||
from services.twitch_state import State
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class State(BaseModel):
|
||||
title: str
|
||||
category: str
|
||||
|
||||
last_live_at: datetime
|
||||
|
||||
|
||||
class TokenStorage:
|
||||
lock = Lock()
|
||||
|
||||
|
||||
10
src/services/twitch_state.py
Normal file
10
src/services/twitch_state.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class State(BaseModel):
|
||||
title: str
|
||||
category: str
|
||||
|
||||
last_live_at: datetime
|
||||
Reference in New Issue
Block a user