From 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 8 May 2007 00:10:04 +0000 Subject: Brought in TestClient code for teh fork --- ExportBot/Commands/UptimeCommand.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ExportBot/Commands/UptimeCommand.cs (limited to 'ExportBot/Commands/UptimeCommand.cs') diff --git a/ExportBot/Commands/UptimeCommand.cs b/ExportBot/Commands/UptimeCommand.cs new file mode 100644 index 0000000..3edec73 --- /dev/null +++ b/ExportBot/Commands/UptimeCommand.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Text; +using libsecondlife; +using libsecondlife.Packets; + +namespace libsecondlife.TestClient +{ + public class UptimeCommand : Command + { + public DateTime Created = DateTime.Now; + + public UptimeCommand(TestClient testClient) + { + Name = "uptime"; + Description = "Shows the login name, login time and length of time logged on."; + } + + public override string Execute(string[] args, LLUUID fromAgentID) + { + string name = Client.ToString(); + return "I am " + name + ", Up Since: " + Created + " (" + (DateTime.Now - Created) + ")"; + } + } +} \ No newline at end of file -- cgit v1.1