Files
libremetaverse/applications/TestBot/Commands/UptimeCommand.cs
lonecoder d190c49c9b TestBot:
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
2006-11-18 18:02:00 +00:00

25 lines
551 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
namespace TestBot
{
public class UptimeCommand: Command
{
public DateTime Created = DateTime.Now;
public UptimeCommand()
{
Name = "uptime";
Description = "Shows the login time and length of time the bot has been logged in.";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
return "Up Since: " + Created + " (" + (DateTime.Now - Created) + ")";
}
}
}