mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
* Fix AutoFishing crash * Fix all warnings * Remove DotNetZip. * Fix the usage of HttpClient.
25 lines
691 B
C#
25 lines
691 B
C#
namespace MinecraftClient.ChatBots
|
|
{
|
|
/// <summary>
|
|
/// Example of message receiving.
|
|
/// </summary>
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|