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 オブジェクトが無効