{"id":1491,"date":"2016-05-27T13:49:15","date_gmt":"2016-05-27T18:49:15","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=1491"},"modified":"2016-05-27T14:00:59","modified_gmt":"2016-05-27T19:00:59","slug":"program-your-second-life-bots-in-javascript","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2016\/05\/program-your-second-life-bots-in-javascript\/","title":{"rendered":"Program your Second Life bots in&#8230; Javascript!"},"content":{"rendered":"<p>Did you ever dreamed to\u00a0control your Second Life bots with\u00a0a convenient language? We did. <!-- src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2016\/05\/20160527-bots-playground-300x240.png\" --><\/p>\n<p>SmartBots\u00a0already have SBSL (a simple scripting language) and AdminBot (which is a library for LSL scripts). However, any &#8220;special&#8221;\u00a0language&#8217;s features\u00a0are\u00a0limited. For example, LSL lacks classes, callback functions, hashes and lot of other\u00a0modern stuff.<\/p>\n<p><!--more--><\/p>\n<h3>Meet the Bots Playground<\/h3>\n<p>Today we are announcing the future-is-here project,\u00a0the\u00a0Javascript for Second Life &#8211; <strong>SmartBots Bots Playground<\/strong>!<\/p>\n<p>What is it? Well, while\u00a0LSL script is a brain of your in-world object,\u00a0Bots Playground&#8217;s Javascript is a brain of\u00a0your bot, written in Javascript. Please take a look at the actual screenshot below:<\/p>\n<p><a href=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2016\/05\/20160527-bots-playground.png\"><img loading=\"lazy\" class=\"aligncenter wp-image-1493 size-medium\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2016\/05\/20160527-bots-playground-300x240.png\" alt=\"Second Life bot programming in Javascript\" width=\"300\" height=\"240\" srcset=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2016\/05\/20160527-bots-playground-300x240.png 300w, https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2016\/05\/20160527-bots-playground-1024x819.png 1024w, https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2016\/05\/20160527-bots-playground.png 1279w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Yes, it is a Javascript code, working inside\u00a0a\u00a0Second Life bot.\u00a0We&#8217;ve developed a simple\u00a0browser-based online IDE\u00a0which allows you examining, editing and running your bot scripts. Editor\u00a0supports multiple bots and scripts, syntax highlight, error and runtime logs.<\/p>\n<p>Scripts run\u00a0in isolated sandboxes, they can not affect\u00a0other scripts or other bots.\u00a0You can send commands to the bot, receive events,\u00a0examine the surrounding world and interact with it (for example, touch objects).<\/p>\n<h3>Is it available already?<\/h3>\n<p>The\u00a0Bots Playground is still in development. We plan to release it in June. At the very beginning, it will be available\u00a0for a limited number of beta-testers. If you want to participate in beta-test, please proceed to <a href=\"http:\/\/play.mysmartbots.com\" target=\"_blank\">http:\/\/play.mysmartbots.com<\/a> and fill the form.<\/p>\n<p>Feel free to ask your questions here or by sending IM to Glaznah Gassner! And join us <a href=\"http:\/\/play.mysmartbots.com\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you ever dreamed to\u00a0control your Second Life bots with\u00a0a convenient language? We did. SmartBots\u00a0already have SBSL (a simple scripting language) and AdminBot (which is a library for LSL scripts). However, any &#8220;special&#8221;\u00a0language&#8217;s features\u00a0are\u00a0limited. For example, LSL lacks classes, callback functions, hashes and lot of other\u00a0modern stuff.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[144,3],"tags":[345,346],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/1491"}],"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=1491"}],"version-history":[{"count":8,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/1491\/revisions"}],"predecessor-version":[{"id":1500,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/1491\/revisions\/1500"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=1491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=1491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=1491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}