Files
libremetaverse/applications/TestBot/Program.cs
lancej 82f9af5ded TestBot:
* Moved Main to a different class and made the TestBot class public.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@592 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-18 06:01:12 +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();
}
}
}
}