Files
libremetaverse/applications/TestBot/Program.cs
lonecoder 8f3627901d Reverted all my changes to TestBot
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@616 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-22 00:14:00 +00:00

34 lines
847 B
C#

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