SecondBot/SecondBotEvents/Commands/Core.cs
2026-06-13 04:30:13 -06:00

52 lines
1.3 KiB
C#

using SecondBotEvents.Services;
namespace SecondBotEvents.Commands
{
[ClassInfo("Used to test interaction with the bot... hello world for avartars")]
public class Core(EventsSecondBot setmaster) : CommandsAPI(setmaster)
{
[About("Used to check connections")]
[ReturnHints("world")]
[CmdTypeGet()]
public object Hello()
{
return BasicReply("world");
}
[About("Returns the bot's Second Life name")]
[ReturnHints("Bot Name")]
[CmdTypeGet()]
public object GetBotName()
{
return BasicReply(GetClient().Self.Name);
}
[About("Returns the bot's UUID")]
[ReturnHints("Bot UUID")]
[CmdTypeGet()]
public object GetBotUUID()
{
return BasicReply(GetClient().Self.AgentID.ToString());
}
}
public class CommandLibCall
{
public string Command { get; set; }
public string[] Args { get; set; }
public string AuthCode { get; set; }
}
public class NearMeDetails
{
public string id { get; set; }
public string name { get; set; }
public int x { get; set; }
public int y { get; set; }
public int z { get; set; }
public double range { get; set; }
}
}