コミットを比較
52 コミット
dbfd6deb1e
...
main
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
| 0e1e87ec05 | |||
| 7edc6e6a80 | |||
| cf7eed84bc | |||
| 05052bbccd | |||
| 49d887b6cd | |||
| 9e28c1744e | |||
| 3eab48c8ef | |||
| 8994105d4e | |||
| bdf13bf97f | |||
| 11c2f0c0d4 | |||
| b3ae86033c | |||
| 88e710572a | |||
| 9a68a29e1b | |||
| 270b4515d8 | |||
| 9d0b5aff70 | |||
| 41f5a7718f | |||
| 4ad5868b63 | |||
| 37c9947d4a | |||
| 6ee5582a32 | |||
| 12fbdbc7e2 | |||
| a9ba0f697e | |||
| 93fc438d8a | |||
| 50281f9120 | |||
| c6028507ea | |||
| 9149483dcb | |||
| a7785fa2c1 | |||
| 49661dad71 | |||
| fb5b64b49b | |||
| e49eff0876 | |||
| af862a7981 | |||
| 29b831e380 | |||
| 98703409ef | |||
| 7289fe5812 | |||
| ba5a428f7b | |||
| 05cd19525c | |||
| 80dc32dbb7 | |||
| 75f3f1cff3 | |||
| 2ba68d9e31 | |||
| 65fe453426 | |||
| 2ce5329aae | |||
| 20cf2cec04 | |||
| 8c53efe707 | |||
| f13c6d8260 | |||
| d66153b87a | |||
| 3f0825f835 | |||
| c83c99bc74 | |||
| 9f705446a8 | |||
| 11195e5125 | |||
| 57ae0992c1 | |||
| a4ec55a4cd | |||
| 5583ded358 | |||
| 719ae99273 |
@@ -1,5 +1,5 @@
|
||||
/connection.py
|
||||
/__pycache__
|
||||
__pycache__
|
||||
/nizika_talking.wav
|
||||
/youtube.py
|
||||
/log.txt
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[submodule "nizika_ai"]
|
||||
path = nizika_ai
|
||||
url = https://git.miteruzo.com/miteruzo/nizika_ai
|
||||
@@ -1,5 +1,6 @@
|
||||
import subprocess
|
||||
from ctypes import *
|
||||
from ctypes import ARRAY # type: ignore
|
||||
from ctypes import POINTER, byref, c_int, c_ubyte, cast, cdll
|
||||
|
||||
|
||||
class Aques:
|
||||
|
||||
|
変更前 幅: | 高さ: | サイズ: 17 KiB 変更後 幅: | 高さ: | サイズ: 17 KiB |
|
変更前 幅: | 高さ: | サイズ: 57 KiB 変更後 幅: | 高さ: | サイズ: 57 KiB |
|
変更前 幅: | 高さ: | サイズ: 99 KiB 変更後 幅: | 高さ: | サイズ: 99 KiB |
|
変更前 幅: | 高さ: | サイズ: 53 KiB 変更後 幅: | 高さ: | サイズ: 53 KiB |
|
変更前 幅: | 高さ: | サイズ: 40 KiB 変更後 幅: | 高さ: | サイズ: 40 KiB |
|
変更後 幅: | 高さ: | サイズ: 166 KiB |
|
変更前 幅: | 高さ: | サイズ: 641 KiB 変更後 幅: | 高さ: | サイズ: 641 KiB |
|
変更前 幅: | 高さ: | サイズ: 554 KiB 変更後 幅: | 高さ: | サイズ: 554 KiB |
@@ -1,8 +0,0 @@
|
||||
class CWindow:
|
||||
WIDTH: int = 1024
|
||||
HEIGHT: int = 768
|
||||
|
||||
|
||||
class CMath:
|
||||
PI: float = 3.14159265358979323846
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import unicodedata
|
||||
|
||||
from common_const import *
|
||||
|
||||
|
||||
class CommonModule:
|
||||
@staticmethod
|
||||
@@ -44,4 +42,3 @@ class CommonModule:
|
||||
trimmed_left: str = string[cls.index_by_f2c (string, start):]
|
||||
|
||||
return trimmed_left[:cls.index_by_f2c (trimmed_left, length)]
|
||||
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
Traceback (most recent call last):
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
|
||||
yield
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_backends/sync.py", line 126, in read
|
||||
return self._sock.recv(max_bytes)
|
||||
File "/usr/lib/python3.10/ssl.py", line 1288, in recv
|
||||
return self.read(buflen)
|
||||
File "/usr/lib/python3.10/ssl.py", line 1161, in read
|
||||
return self._sslobj.read(len)
|
||||
TimeoutError: The read operation timed out
|
||||
|
||||
The above exception was the direct cause of the following exception:
|
||||
|
||||
Traceback (most recent call last):
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
|
||||
yield
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 228, in handle_request
|
||||
resp = self._pool.handle_request(req)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 268, in handle_request
|
||||
raise exc
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 251, in handle_request
|
||||
response = connection.handle_request(request)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 103, in handle_request
|
||||
return self._connection.handle_request(request)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 185, in handle_request
|
||||
raise exc
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 148, in handle_request
|
||||
status, headers = self._receive_response(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 292, in _receive_response
|
||||
event = self._receive_stream_event(request, stream_id)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 333, in _receive_stream_event
|
||||
self._receive_events(request, stream_id)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 361, in _receive_events
|
||||
events = self._read_incoming_data(request)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 452, in _read_incoming_data
|
||||
raise exc
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_sync/http2.py", line 438, in _read_incoming_data
|
||||
data = self._network_stream.read(self.READ_NUM_BYTES, timeout)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_backends/sync.py", line 124, in read
|
||||
with map_exceptions(exc_map):
|
||||
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
|
||||
self.gen.throw(typ, value, traceback)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
|
||||
raise to_exc(exc) from exc
|
||||
httpcore.ReadTimeout: The read operation timed out
|
||||
|
||||
The above exception was the direct cause of the following exception:
|
||||
|
||||
Traceback (most recent call last):
|
||||
File "/home/miteruzo/Downloads/nizika_broadcast/main.py", line 117, in <module>
|
||||
Main.main ()
|
||||
File "/home/miteruzo/Downloads/nizika_broadcast/main.py", line 106, in main
|
||||
live_chat = pytchat.create (video_id = YOUTUBE_ID)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/pytchat/core/__init__.py", line 7, in create
|
||||
return PytchatCore(_vid, **kwargs)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/pytchat/core/pytchat.py", line 96, in __init__
|
||||
self._setup()
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/pytchat/core/pytchat.py", line 106, in _setup
|
||||
channel_id=util.get_channelid(self._client, self._video_id),
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/pytchat/util/__init__.py", line 103, in get_channelid
|
||||
resp = client.get("https://www.youtube.com/embed/{}".format(quote(video_id)), headers=config.headers)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_client.py", line 1041, in get
|
||||
return self.request(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_client.py", line 814, in request
|
||||
return self.send(request, auth=auth, follow_redirects=follow_redirects)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_client.py", line 901, in send
|
||||
response = self._send_handling_auth(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_client.py", line 929, in _send_handling_auth
|
||||
response = self._send_handling_redirects(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_client.py", line 966, in _send_handling_redirects
|
||||
response = self._send_single_request(request)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_client.py", line 1002, in _send_single_request
|
||||
response = transport.handle_request(request)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 227, in handle_request
|
||||
with map_httpcore_exceptions():
|
||||
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
|
||||
self.gen.throw(typ, value, traceback)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
|
||||
raise mapped_exc(message) from exc
|
||||
httpx.ReadTimeout: The read operation timed out
|
||||
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
Traceback (most recent call last):
|
||||
File "/home/miteruzo/Downloads/nizika_broadcast/main.py", line 136, in <module>
|
||||
Main.main ((len (sys.argv) > 1) and (sys.argv[1] == '-g'))
|
||||
File "/home/miteruzo/Downloads/nizika_broadcast/main.py", line 60, in main
|
||||
answer: str = Talk.main (message, chat_item.author['name'], histories, goatoh_mode).replace ('\n', ' ')
|
||||
File "/home/miteruzo/Downloads/nizika_broadcast/talk.py", line 23, in main
|
||||
= cls.__get_message (message, name, histories, goatoh_mode)
|
||||
File "/home/miteruzo/Downloads/nizika_broadcast/talk.py", line 196, in __get_message
|
||||
return openai.chat.completions.create (
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_utils/_utils.py", line 301, in wrapper
|
||||
return func(*args, **kwargs)
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 598, in create
|
||||
return self._post(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 1096, in post
|
||||
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 856, in request
|
||||
return self._request(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 894, in _request
|
||||
return self._retry_request(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 966, in _retry_request
|
||||
return self._request(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 894, in _request
|
||||
return self._retry_request(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 966, in _retry_request
|
||||
return self._request(
|
||||
File "/home/miteruzo/.local/lib/python3.10/site-packages/openai/_base_client.py", line 908, in _request
|
||||
raise self._make_status_error_from_response(err.response) from None
|
||||
openai.InternalServerError: Error code: 500 - {'error': {'message': 'The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_ca732fde8fe201933c96c403d44db7e5 in your email.)', 'type': 'server_error', 'param': None, 'code': None}}
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
from enum import Enum, auto
|
||||
|
||||
|
||||
class Mode (Enum):
|
||||
NIZIKA = auto ()
|
||||
GOATOH = auto ()
|
||||
DOUBLE = auto ()
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# 各変数に適切な値を設定し,ファイル名を youtube.py として保存すること
|
||||
|
||||
YOUTUBE_ID: str = 'XXXXXXXXXXX' # YouTube の配信 ID
|
||||