mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Add loggers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from asyncio import Lock, sleep
|
||||
from datetime import datetime
|
||||
import json
|
||||
import logging
|
||||
|
||||
from twitchAPI.helper import first
|
||||
from twitchAPI.eventsub.webhook import EventSubWebhook
|
||||
@@ -16,6 +17,9 @@ from config import config
|
||||
from services.notification import notify
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class State(BaseModel):
|
||||
title: str
|
||||
category: str
|
||||
@@ -188,7 +192,7 @@ class TwitchService:
|
||||
|
||||
@classmethod
|
||||
async def start(cls):
|
||||
print("Starting Twitch service...")
|
||||
logger.info("Starting Twitch service...")
|
||||
|
||||
twith = await cls.authorize()
|
||||
await cls(twith).run()
|
||||
|
||||
Reference in New Issue
Block a user