Difference between revisions of "Bot Playground/Commands/isMyOwner"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Returns if the bot is owned by the avatar.</onlyinclude> <syntaxhighlight lang="javascript"> const res = await Bot.isMyOwner("sl...") |
|||
Line 23: | Line 23: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
let isOwner = Bot.isMyOwner("Glaznah Gassner"); | let isOwner = Bot.isMyOwner("Glaznah Gassner"); | ||
− | console.log(`Glaznah Gassner is | + | console.log(`Glaznah Gassner is Owner: ${isOwner}`); |
</syntaxhighlight> | </syntaxhighlight> | ||
{{NavMenu}} | {{NavMenu}} | ||
__NOTOC__ | __NOTOC__ |
Revision as of 12:24, 17 February 2025
Returns if the bot is owned by the avatar.
const res = await Bot.isMyOwner("slnameOrUUID");
console.log("Is Bot Owner:", 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 owner of the bot |
Examples
let isOwner = Bot.isMyOwner("Glaznah Gassner");
console.log(`Glaznah Gassner is Owner: ${isOwner}`);