diff --git a/Harmony/CHRANIBotTNG.cs b/Harmony/CHRANIBotTNG.cs
index 76b71cb..d61cedc 100644
--- a/Harmony/CHRANIBotTNG.cs
+++ b/Harmony/CHRANIBotTNG.cs
@@ -1,29 +1,26 @@
using HarmonyLib;
using System.Reflection;
using System;
+using System.Linq;
public class CHRANIBotTNG : IModApi
{
public void InitMod(Mod _modInstance)
{
Console.WriteLine("[CHRANIBotTNG] Loading");
- var harmony = new Harmony("com.chranibottng.mod");
- harmony.PatchAll(Assembly.GetExecutingAssembly());
+
+ // List all GameManager methods containing "Chat"
+ var gmType = typeof(GameManager);
+ Console.WriteLine("[CHRANIBotTNG] GameManager methods with 'Chat':");
+ foreach (var method in gmType.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static))
+ {
+ if (method.Name.Contains("Chat"))
+ {
+ var parameters = string.Join(", ", method.GetParameters().Select(p => p.ParameterType.Name + " " + p.Name));
+ Console.WriteLine($" {method.Name}({parameters})");
+ }
+ }
+
Console.WriteLine("[CHRANIBotTNG] Loaded");
}
-}
-
-[HarmonyPatch(typeof(ChatCommandManager), "ProcessCommand")]
-public class ChatCommandPatch
-{
- static bool Prefix(ChatCommandManager __instance, string _chatText, ClientInfo _cInfo)
- {
- if (_chatText != null && _chatText.StartsWith("/bot "))
- {
- string playerName = _cInfo != null ? _cInfo.playerName : "Server";
- Console.WriteLine($"[Bot] {playerName}: {_chatText}");
- return false;
- }
- return true;
- }
}
\ No newline at end of file
diff --git a/ModInfo.xml b/ModInfo.xml
index 68b39b7..37f7e9f 100644
--- a/ModInfo.xml
+++ b/ModInfo.xml
@@ -1,9 +1,11 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file