Difference between revisions of "Bot Playground/Commands/checkScriptedAgent"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Returns if the avatar is a bot on Smartbots.</onlyinclude> <syntaxhighlight lang="javascript"> const res = await Bot.checkScript...") |
|||
Line 22: | Line 22: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
− | let isBot = Bot.checkScriptedAgent("Glaznah Gassner"); | + | let isBot = await Bot.checkScriptedAgent("Glaznah Gassner"); |
console.log(`Glaznah Gassner is a Bot: ${isBot}`); | console.log(`Glaznah Gassner is a Bot: ${isBot}`); | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 12:28, 17 February 2025
Returns if the avatar is a bot on Smartbots.
const res = await Bot.checkScriptedAgent("slnameOrUUID");
console.log("Is Bot Scripted Agent:", res);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
slName or UUID | yes | The Avatar SL Name or UUID | |
Output: | |||
return value | boolean | true if resident is the bot at Smartbots |
Examples
let isBot = await Bot.checkScriptedAgent("Glaznah Gassner");
console.log(`Glaznah Gassner is a Bot: ${isBot}`);