2006-11-18 06:01:12 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace TestBot
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2006-11-22 00:14:00 +00:00
|
|
|
if (args.Length != 3)
|
2006-11-18 06:01:12 +00:00
|
|
|
{
|
2006-11-22 00:14:00 +00:00
|
|
|
Console.WriteLine("Usage: TestBot.exe [firstname] [lastname] [password]");
|
2006-11-18 06:01:12 +00:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2006-11-22 00:14:00 +00:00
|
|
|
TestBot bot = new TestBot(args[0], args[1], args[2]);
|
|
|
|
|
Console.WriteLine("Type quit to exit");
|
|
|
|
|
string input = "";
|
2006-11-18 18:23:14 +00:00
|
|
|
|
2006-11-22 00:14:00 +00:00
|
|
|
while (bot.running && bot.Client.Network.Connected)
|
|
|
|
|
{
|
|
|
|
|
input = Console.ReadLine();
|
|
|
|
|
bot.DoCommand(input, null, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (bot.Client.Network.Connected)
|
|
|
|
|
{
|
|
|
|
|
bot.Client.Network.Logout();
|
|
|
|
|
}
|
2006-11-18 06:01:12 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|