isMyManager
Returns true if the specified avatar is a Trusted Manager for the bot.
const res = await Bot.isMyManager("slnameOrUUID");
console.log("Is Bot Manager:", res);Input
Variable | Required | Description |
|---|---|---|
| yes | The avatar's Second Life name or UUID |
Output
Variable | Type | Description |
|---|---|---|
| boolean |
|
Examples
Bot.on("chat_message", async function (event) {
let isManager = await Bot.isMyManager(event.speaker_name);
if (isManager) {
console.log(`Message from Trusted Manager`);
}
});