1
- from pythonosc import udp_client
2
-
3
-
4
- class VRChatOSC :
5
1
"""
6
2
Module for handling OSC (Open Sound Control) communications with VRChat.
7
3
This module provides a class for sending messages and managing typing
@@ -30,16 +26,6 @@ def __init__(self, ip: str, port: int):
30
26
31
27
self .client = udp_client .SimpleUDPClient (ip , port )
32
28
33
- def send_message (self , message : str ):
34
- """
35
- Sends a message to the chatbox.
36
- Args:
37
- message (str): The message to be sent to the chatbox.
38
- """
39
-
40
- self .client .send_message ("/chatbox/input" , [message , True ])
41
- self .client .send_message ("/chatbox/typing" , False )
42
-
43
29
def set_typing_indicator (self , typing : bool ):
44
30
"""
45
31
Sets the typing indicator status in the chatbox.
@@ -49,15 +35,6 @@ def set_typing_indicator(self, typing: bool):
49
35
"""
50
36
51
37
self .client .send_message ("/chatbox/typing" , typing )
52
- def __init__ (self , ip : str , port : int ):
53
- """
54
- Initializes the OSC client with the specified IP address and port.
55
- Args:
56
- ip (str): The IP address of the OSC server.
57
- port (int): The port number of the OSC server.
58
- """
59
-
60
- self .client = udp_client .SimpleUDPClient (ip , port )
61
38
62
39
def send_message (self , message : str ):
63
40
"""
@@ -68,13 +45,3 @@ def send_message(self, message: str):
68
45
69
46
self .client .send_message ("/chatbox/input" , [message , True ])
70
47
self .client .send_message ("/chatbox/typing" , False )
71
-
72
- def set_typing_indicator (self , typing : bool ):
73
- """
74
- Sets the typing indicator status in the chatbox.
75
- Args:
76
- typing (bool): If True, the typing indicator will be shown. If
77
- False, it will be hidden.
78
- """
79
-
80
- self .client .send_message ("/chatbox/typing" , typing )
0 commit comments