Home › Forums › Developing with SmartBots › Bots Playground (JavaScript) › New javascript playground
- This topic has 17 replies, 2 voices, and was last updated 7 years, 9 months ago by Glaznah Gassner.
-
AuthorPosts
-
June 8, 2016 at 00:22 #124Glaznah GassnerKeymaster
We’ve recently announced the SmartBots Playground, the place you can program bots with JavaScript (read more here).
So, this forum topic will relate mostly to Playground, at least at the beginning.
Feel free to ask your questions and wishes here!
July 26, 2016 at 17:26 #177Heyter NitelyParticipantHey.
I just have access to SmartBots Playground and it seems to be very useful.
However, I’m wondering something about the TP.
https://www.mysmartbots.com/dev/docs/Bot_Playground/Events/teleport_offer
You can detect a teleportation but we’re not able to accept it ?
July 26, 2016 at 17:55 #178Glaznah GassnerKeymasterHello Heyter,
Well, yes – we did not managed to approve/reject the teleport requests yet (as well as group invitation requests). Current implementation of Playground is based on SmartBots HTTP API which does not have this feature.
However, we plan to make the necessary changes to our bots core software and add teleport approvals.
P.S. Thank you for your message. I’m personally using Playground for dozens of tasks and glad to see people enjoy using it as well.
July 26, 2016 at 17:56 #179Glaznah GassnerKeymaster…if you definitely need the request approval for your projects, we will add it asap.
July 26, 2016 at 18:04 #180Heyter NitelyParticipantHey, thank you for your quick answer.
I don’t need it but I was curious to test it as every features.
Yea, this is definitely what I was looking for since a long time. I run a bot for my system and using another to test your system. That’s sad to know that I can’t have an additionnal bot but it’s fine tho.
But it would be cool to control what teleport you can accept based on a list of avatar names, for example. I’m just giving ideas.
Something that would be great is including HTTP Request, specially using jQuery lib to use $.get();
July 26, 2016 at 18:06 #181Glaznah GassnerKeymaster$.get() is the feature we also need (for example, to communicate with an external storage).
It is rather easy to implement but I’m afraid of possible abuse attempts yet.
July 26, 2016 at 18:11 #182Heyter NitelyParticipantLimit the usage of it per day ?
Only allow request to verified website ?
July 26, 2016 at 18:16 #183Heyter NitelyParticipantSomething that might be cool also:
Bot.activateGroup(“00000000-0000-0000-0000-000000000000”);
Setting “none”, “NULL_KEY” or “” might remove the active group, search somewhere “00000000-0000-0000-0000-000000000000” to copy and paste is not really “easy”
July 26, 2016 at 18:21 #184Glaznah GassnerKeymasterProbably a website approval for new users and unrestricted access for experienced users. All with limits similar to LSL.
July 26, 2016 at 18:21 #185Glaznah GassnerKeymasterSomething that might be cool also:
Bot.activateGroup(“00000000-0000-0000-0000-000000000000”);
Setting “none”, “NULL_KEY” or “” might remove the active group, search somewhere “00000000-0000-0000-0000-000000000000” to copy and paste is not really “easy”
Agree, added to TODO list.
July 26, 2016 at 18:28 #186Heyter NitelyParticipantProbably a website approval for new users and unrestricted access for experienced users. All with limits similar to LSL.
Seems perfect to me.
Is there any limit to Bot.name2key ?
Because this is something I was looking for, like.. REALLY.
July 26, 2016 at 18:36 #187Heyter NitelyParticipanthttps://www.mysmartbots.com/dev/docs/Bot_Playground/Commands/sendNotice
It say that attachment is not required but .. If we don’t set something “Bot.sendNotice(groupuuid, title, text);” an error occur and the function fail. -> attachment UUID not specified (undefined)
July 26, 2016 at 18:43 #188Glaznah GassnerKeymasterhttps://www.mysmartbots.com/dev/docs/Bot_Playground/Commands/sendNotice
It say that attachment is not required but .. If we don’t set something “Bot.sendNotice(groupuuid, title, text);” an error occur and the function fail. -> attachment UUID not specified (undefined)
Right, messed with nonexistent JS variables… fixed, please try again.
July 26, 2016 at 18:58 #189Heyter NitelyParticipanthttps://www.mysmartbots.com/dev/docs/Bot_Playground/Commands/sendNotice
It say that attachment is not required but .. If we don’t set something “Bot.sendNotice(groupuuid, title, text);” an error occur and the function fail. -> attachment UUID not specified (undefined)
Right, messed with nonexistent JS variables… fixed, please try again.
It works. I really do appreciate your quick fix.
Edit: It there a way to use group name instead of its UUID with Bot.sendNotice ? Would be more clear when you will read the code
- This reply was modified 7 years, 9 months ago by Heyter Nitely.
- This reply was modified 7 years, 9 months ago by Heyter Nitely.
July 26, 2016 at 19:09 #192Heyter NitelyParticipantIs there any possibility to also be able to include scripts ?
Like having “lib” script for the bot and be able to use functions, etc.
-
AuthorPosts
- You must be logged in to reply to this topic.