Address code review feedback: fix password placeholder, IPv4 regex, and doc references

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/c762752f-46be-44f6-a05d-8c5effc8ef43
This commit is contained in:
copilot-swe-agent[bot] 2026-03-25 13:54:04 +00:00
parent 6d6d1105eb
commit d5a9ae3deb
3 changed files with 7 additions and 6 deletions

View file

@ -18,7 +18,8 @@
//using MinecraftClient.Scripting
//using MinecraftClient
MCC.LoadBot(new WebSocketBot("127.0.0.1", 8043, "wspass12345"));
// IMPORTANT: Change the password below before use!
MCC.LoadBot(new WebSocketBot("127.0.0.1", 8043, "CHANGE_THIS_PASSWORD"));
//MCCScript Extensions
@ -207,7 +208,7 @@ public class WebSocketBot : ChatBot
private bool _gameJoined;
private static readonly Regex Ipv4Regex = new(
@"^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$",
@"^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.){3}(25[0-5]|(2[0-4]|1\d|[1-9]|)\d)$",
RegexOptions.Compiled);
public WebSocketBot(string ip, int port, string password, bool debugMode = false)