From 1754b099c008340629c8f9f617c072379c6eea87 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Wed, 9 Jul 2025 18:01:35 +0100 Subject: [PATCH] add GetCurrentRegionType --- SecondBotEvents/Commands/Info.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/SecondBotEvents/Commands/Info.cs b/SecondBotEvents/Commands/Info.cs index 564e673..86299ac 100644 --- a/SecondBotEvents/Commands/Info.cs +++ b/SecondBotEvents/Commands/Info.cs @@ -10,6 +10,20 @@ namespace SecondBotEvents.Commands [ClassInfo("What is going on with the bot")] public class Info(EventsSecondBot setmaster) : CommandsAPI(setmaster) { + [About("Fetchs the current region type the bot is in")] + [ReturnHints("Region type as string")] + [ReturnHintsFailure("Error not in a sim")] + [CmdTypeGet()] + public object GetCurrentRegionType() + { + if(GetClient().Network.CurrentSim == null) + { + return Failure("Error not in a sim"); + } + return BasicReply(GetClient().Network.CurrentSim.ProductName); + + } + [About("Lists objects that are sculpty type in the current sim that the bot can see")] [ReturnHints("A json object")] [CmdTypeGet()]