{"id":3590,"date":"2025-02-27T04:15:24","date_gmt":"2025-02-27T10:15:24","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=3590"},"modified":"2025-02-27T04:15:26","modified_gmt":"2025-02-27T10:15:26","slug":"new-playground-features-check-owner-manager-or-bot","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2025\/02\/new-playground-features-check-owner-manager-or-bot\/","title":{"rendered":"New Playground features: check owner, manager or bot"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large alignright\"><img loading=\"lazy\" width=\"250\" height=\"143\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2025\/02\/20250227-second-life-scripting-check-owner.jpg\" alt=\"\" class=\"wp-image-3591\"\/><\/figure>\n\n\n\n<p>We added new commands to <a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\" target=\"_blank\" rel=\"noreferrer noopener\">Bot Playgrounds<\/a> (Second Life bot JavaScript sandbox):<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/isMyOwner\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/isMyOwner\" target=\"_blank\" rel=\"noreferrer noopener\">Bot.isMyOwner(nameOrUUID)<\/a> &#8211; checks if given resident is an owner of the bot,<\/li><li><a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/isMyManager\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/isMyManager\" target=\"_blank\" rel=\"noreferrer noopener\">Bot.isMyManager(nameOrUUID)<\/a> &#8211; checks if given resident is a <a href=\"https:\/\/www.mysmartbots.com\/docs\/Trusted_Managers\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/docs\/Trusted_Managers\" target=\"_blank\" rel=\"noreferrer noopener\">Trusted Manager<\/a> and allowed to control the bot,<\/li><li><a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/checkScriptedAgent\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/checkScriptedAgent\" target=\"_blank\" rel=\"noreferrer noopener\">Bot.checkScriptedAgent(nameOrUUID)<\/a> &#8211; checks if resident is some kind of bot in Second Life,<\/li><\/ul>\n\n\n\n<p>plus one function to get real-time location of the bot:<\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/getLocation\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Bot_Playground\/Commands\/getLocation\" target=\"_blank\">Bot.getLocation()<\/a> &#8211; returns current bot region and coordinates<\/li><\/ul>\n\n\n\n<!--more-->\n\n\n\n<h2>More info<\/h2>\n\n\n\n<p>These functions allow authorizing specific Second Life residents (our managers or partners) to perform restricted interactions with the bot.<\/p>\n\n\n\n<p><em>Bot.getLocation()<\/em> function has been added to get a near-realtime location of the bot (the all-purpose <em>Bot.status()<\/em> function may cache return value for up to 30 seconds).<\/p>\n\n\n\n<p>Happy scripting! And welcome to our <a href=\"https:\/\/www.mysmartbots.com\/store\/section\/scripts\/\" data-type=\"URL\" data-id=\"https:\/\/www.mysmartbots.com\/store\/section\/scripts\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bot Store<\/a> if you are looking for great bot scripts, including AI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We added new commands to Bot Playgrounds (Second Life bot JavaScript sandbox): Bot.isMyOwner(nameOrUUID) &#8211; checks if given resident is an owner of the bot, Bot.isMyManager(nameOrUUID) &#8211; checks if given resident is a Trusted Manager and allowed to control the bot, Bot.checkScriptedAgent(nameOrUUID) &#8211; checks if resident is some kind of bot in Second Life, plus one [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[359,144,350],"tags":[310,138,581,156,366],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3590"}],"collection":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/comments?post=3590"}],"version-history":[{"count":4,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3590\/revisions"}],"predecessor-version":[{"id":3595,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3590\/revisions\/3595"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=3590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=3590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=3590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}