ぼちぼち ( #31 )
このコミットが含まれているのは:
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "nizika_ai"]
|
||||||
|
path = nizika_ai
|
||||||
|
url = https://git.miteruzo.com/miteruzo/nizika_ai
|
||||||
サブモジュール
+1
サブモジュール nizika_ai が 8e1d305b4a で追加されました
@@ -8,6 +8,7 @@ from enum import Enum, auto
|
|||||||
from typing import Callable, TypedDict
|
from typing import Callable, TypedDict
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
|
import emoji
|
||||||
import ephem # type: ignore
|
import ephem # type: ignore
|
||||||
import pygame
|
import pygame
|
||||||
import pygame.gfxdraw
|
import pygame.gfxdraw
|
||||||
@@ -23,6 +24,7 @@ from pytchat.processors.default.processor import Chat # type: ignore
|
|||||||
|
|
||||||
from common_module import CommonModule
|
from common_module import CommonModule
|
||||||
from nizika_ai.models import Answer, AnsweredFlag, Query, User
|
from nizika_ai.models import Answer, AnsweredFlag, Query, User
|
||||||
|
from nizika_ai.consts import Platform
|
||||||
|
|
||||||
pygame.init ()
|
pygame.init ()
|
||||||
|
|
||||||
@@ -55,10 +57,13 @@ def main (
|
|||||||
pygame.quit ()
|
pygame.quit ()
|
||||||
sys.exit ()
|
sys.exit ()
|
||||||
chat = broadcast.fetch_chat ()
|
chat = broadcast.fetch_chat ()
|
||||||
chat.message = emoji.emojize (chat.message)
|
if chat is not None:
|
||||||
message: str = chat.message
|
chat.message = emoji.emojize (chat.message)
|
||||||
if where chat.author.channelId
|
message: str = chat.message
|
||||||
# chat.author
|
user = (User.where ('platform', Platform.YOUTUBE.value)
|
||||||
|
.where ('code', chat.author.channelId)
|
||||||
|
.get ())
|
||||||
|
# chat.author
|
||||||
game.redraw ()
|
game.redraw ()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
新しい課題から参照
ユーザをブロックする