From 9fa218badf85351bf9f127f8c16531922626e6b1 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sat, 6 Apr 2024 06:09:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=80=E3=83=96=E3=83=AB=E3=83=BB=E3=83=A2?= =?UTF-8?q?=E3=83=BC=E3=83=89=EF=BC=8C=E3=81=A1=E3=82=87=E3=81=A3=E3=81=A8?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 9e628a6..772b3c7 100644 --- a/main.py +++ b/main.py @@ -203,13 +203,14 @@ class Main: screen.fill ((0, 255, 0)) - chat_item.author['name'] = 'ゴートうひとり' if goatoh_talking else '伊地知ニジカ' - chat_item.author['id'] = '' - chat_item.author['channelId'] = './favicon-goatoh.ico' if goatoh_talking else './favicon.ico' + chat_item.author = {'name': 'ゴートうひとり' if goatoh_talking else '伊地知ニジカ', + 'id': '', + 'imageUrl': './favicon-goatoh.ico' if goatoh_talking else './favicon.ico'} + chat_item.message = histories.pop (-1)['content'] - goatoh_talking = not goatoh_talking + message = chat_item.message - message = histories.pop (-1)['content'] + goatoh_talking = not goatoh_talking else: # Chat オブジェクトが無効