Skip to content

Commit 361da49

Browse files
committed
Remove redundant methods and comments from VRChatOSC class for improved clarity
1 parent 3fc7de1 commit 361da49

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

classes/osc.py

-33
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from pythonosc import udp_client
2-
3-
4-
class VRChatOSC:
51
"""
62
Module for handling OSC (Open Sound Control) communications with VRChat.
73
This module provides a class for sending messages and managing typing
@@ -30,16 +26,6 @@ def __init__(self, ip: str, port: int):
3026

3127
self.client = udp_client.SimpleUDPClient(ip, port)
3228

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-
4329
def set_typing_indicator(self, typing: bool):
4430
"""
4531
Sets the typing indicator status in the chatbox.
@@ -49,15 +35,6 @@ def set_typing_indicator(self, typing: bool):
4935
"""
5036

5137
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)
6138

6239
def send_message(self, message: str):
6340
"""
@@ -68,13 +45,3 @@ def send_message(self, message: str):
6845

6946
self.client.send_message("/chatbox/input", [message, True])
7047
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

Comments
 (0)