Added Robust Command Framework Added Several New Commands Made calling commands case in-sensitive Cleaned up TestBot Code git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@594 52acb1d6-8a22-11de-b505-999d5b087335
23 lines
521 B
C#
23 lines
521 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using libsecondlife;
|
|
using libsecondlife.Packets;
|
|
|
|
namespace TestBot
|
|
{
|
|
public class LocationCommand: Command
|
|
{
|
|
public LocationCommand()
|
|
{
|
|
Name = "location";
|
|
Description = "Show the bots location.";
|
|
}
|
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
|
{
|
|
return "CurrentSim: '" + Client.Network.CurrentSim.Region.Name + "' Position: " + Client.Self.Position.ToString();
|
|
}
|
|
}
|
|
}
|