Browse Source

デバッグ情報削除

btc-sounds
みてるぞ 1 year ago
parent
commit
35255b057f
1 changed files with 5 additions and 14 deletions
  1. +5
    -14
      main.py

+ 5
- 14
main.py View File

@@ -37,21 +37,9 @@ class Main:
screen.fill ((0, 255, 0))

for i in range (4):
screen.blit (
system_font.render (
f'live_chat.is_alive () == {live_chat.is_alive ()}',
True, (0, 0, 0)),
(i % 2, i // 2 * 2))
screen.blit (
system_font.render (str (datetime.now ()), True, (0, 0, 0)),
(i % 2, 32 + i // 2 * 2))

if live_chat.is_alive ():
screen.blit (
system_font.render (
f'chat_items == {chat_items}',
True, (0, 0, 0)),
(i % 2, 64 + i // 2 * 2))
(i % 2, i // 2 * 2))

if live_chat.is_alive ():
chat_items: list = live_chat.get ().items
@@ -103,7 +91,10 @@ class Main:

time.sleep (1.5)

wav: bytearray | None = Aques.main (answer)
try:
wav: bytearray | None = Aques.main (answer)
except:
wav: None = None
if wav is not None:
with open ('./nizika_talking.wav', 'wb') as f:
f.write (wav)


Loading…
Cancel
Save