mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Started command list sequence.
Typo: dictionnary -> dictionary
This commit is contained in:
parent
019cd67811
commit
222b5332f3
1 changed files with 20 additions and 10 deletions
|
|
@ -552,18 +552,18 @@ namespace MinecraftClient
|
||||||
|
|
||||||
public class Alerts : ChatBot
|
public class Alerts : ChatBot
|
||||||
{
|
{
|
||||||
private string[] dictionnary = new string[0];
|
private string[] dictionary = new string[0];
|
||||||
private string[] excludelist = new string[0];
|
private string[] excludelist = new string[0];
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
if (System.IO.File.Exists("config/alerts.txt"))
|
if (System.IO.File.Exists("config/alerts.txt"))
|
||||||
{
|
{
|
||||||
dictionnary = System.IO.File.ReadAllLines("config/alerts.txt");
|
dictionary = System.IO.File.ReadAllLines("config/alerts.txt");
|
||||||
|
|
||||||
for (int i = 0; i < dictionnary.Length; i++)
|
for (int i = 0; i < dictionary.Length; i++)
|
||||||
{
|
{
|
||||||
dictionnary[i] = dictionnary[i].ToLower();
|
dictionary[i] = dictionary[i].ToLower();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else LogToConsole("Cannot find alerts.txt in the config folder!");
|
else LogToConsole("Cannot find alerts.txt in the config folder!");
|
||||||
|
|
@ -584,7 +584,7 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
text = getVerbatim(text);
|
text = getVerbatim(text);
|
||||||
string comp = text.ToLower();
|
string comp = text.ToLower();
|
||||||
foreach (string alert in dictionnary)
|
foreach (string alert in dictionary)
|
||||||
{
|
{
|
||||||
if (comp.Contains(alert))
|
if (comp.Contains(alert))
|
||||||
{
|
{
|
||||||
|
|
@ -764,7 +764,7 @@ namespace MinecraftClient
|
||||||
|
|
||||||
public class AutoRelog : ChatBot
|
public class AutoRelog : ChatBot
|
||||||
{
|
{
|
||||||
private string[] dictionnary = new string[0];
|
private string[] dictionary = new string[0];
|
||||||
private int attempts;
|
private int attempts;
|
||||||
private int delay;
|
private int delay;
|
||||||
|
|
||||||
|
|
@ -788,11 +788,11 @@ namespace MinecraftClient
|
||||||
McTcpClient.AttemptsLeft = attempts;
|
McTcpClient.AttemptsLeft = attempts;
|
||||||
if (System.IO.File.Exists("config/kickmessages.txt"))
|
if (System.IO.File.Exists("config/kickmessages.txt"))
|
||||||
{
|
{
|
||||||
dictionnary = System.IO.File.ReadAllLines("config/kickmessages.txt");
|
dictionary = System.IO.File.ReadAllLines("config/kickmessages.txt");
|
||||||
|
|
||||||
for (int i = 0; i < dictionnary.Length; i++)
|
for (int i = 0; i < dictionary.Length; i++)
|
||||||
{
|
{
|
||||||
dictionnary[i] = dictionnary[i].ToLower();
|
dictionary[i] = dictionary[i].ToLower();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else LogToConsole("Cannot find kickmessages.txt in the config directory!");
|
else LogToConsole("Cannot find kickmessages.txt in the config directory!");
|
||||||
|
|
@ -802,7 +802,7 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
message = getVerbatim(message);
|
message = getVerbatim(message);
|
||||||
string comp = message.ToLower();
|
string comp = message.ToLower();
|
||||||
foreach (string msg in dictionnary)
|
foreach (string msg in dictionary)
|
||||||
{
|
{
|
||||||
if (comp.Contains(msg))
|
if (comp.Contains(msg))
|
||||||
{
|
{
|
||||||
|
|
@ -841,5 +841,15 @@ namespace MinecraftClient
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Runs a list of commands
|
||||||
|
/// Usage: bot:scripting:filename
|
||||||
|
/// </summary>
|
||||||
|
|
||||||
|
public class scripting : ChatBot
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue