namespace MinecraftClient.ChatBots { /// /// Example of message receiving. /// public class TestBot : ChatBot { public override void GetText(string text) { string message = ""; string username = ""; text = GetVerbatim(text); if (IsPrivateMessage(text, ref message, ref username)) { LogToConsoleTranslated("bot.testBot.told", username, message); } else if (IsChatMessage(text, ref message, ref username)) { LogToConsoleTranslated("bot.testBot.said", username, message); } } } }