# Commands

All commands are invoked by calling the `llMessageLinked` LSL function:

```csharp
llMessageLinked(integer linknum, integer num, string str, key id)
```

* `num` is a code of the command (see below)
* `str` and `id` parameters depend on a particular command

See the [AdminBot Examples](/doc/examples-DF6z2SxxfH) for usage patterns.

## AdminBot Commands List

| **Startup commands** |
|------------------|
| [`SB_SETUP_SETGROUP`](/doc/sb_setup_setgroup-3NAcXE4AdF) | Sets the working group. Other commands require this command to be invoked first. |
| [`SB_SETUP_SETGROUPUUID`](/doc/sb_setup_setgroupuuid-G6Ery397la) | The same as [`SB_SETUP_SETGROUP`](/doc/sb_setup_setgroup-3NAcXE4AdF), but uses group UUID instead of name. |
| [`SB_STATUS_QUERY`](/doc/sb_status_query-i2HUb8WGFw) | Queries the AdminBot-selected group status (useful to determine the subscription length). Result is being returned using [`SB_STATUS_REPLY`](/doc/sb_status_reply-SUOQ7UwhYz) event |
| [`SB_RESET_ADMINBOT`](/doc/sb_reset_adminbot-Dy4iSJsvnf) | Invokes `llResetScript()` for AdminBot script. |
| **Device settings commands** |
| [`SB_SETUP_SETOPTIONS`](/doc/sb_setup_setoptions-AfDC6GgN4l) | Sets various options for AdminBot. |
| [`SB_SETUP_DEVICENAME`](/doc/sb_setup_devicename-Qggx3N4IsR) | Sets the device name and device creator for your statistics purposes (you will be able to see who is using your device). |
| [`SB_SETUP_DEBUG`](/doc/sb_setup_debug-hvsycYfAX0) | Enables or disables the debug mode. |
| [`SB_SETUP_SETLINK`](/doc/sb_setup_setlink-flLF1B5Oak) | Commands AdminBot to use specific link number for `llMessageLinked` calls instead of `LINK_SET`. |
| **Group membership control** |
| [`SB_INVITE_SEND`](/doc/sb_invite_send-rTGYNssvpT) | Invites resident to the group. |
| [`SB_GROUP_EJECT`](/doc/sb_group_eject-6l9XXx2xJW) | Ejects specific resident from group. |
| [`SB_AVATAR_GROUP`](/doc/sb_avatar_group-DloC6llFSi) | Checks if resident is a member of a specific group and returns result using [`SB_GROUP_CHECKED`](/doc/sb_group_checked-SITqOCN2eO) event. |
| [`SB_ADJUST_GROUP_ROLE`](/doc/sb_adjust_group_role-TYtOSGKLJq) | Adds or removes the group role to the group member. |
| **Group chat commands / spam control** |
| [`SB_CHAT_SAY`](/doc/sb_chat_say-6dgGIynZ7k) | Sends your message to the group chat. |
| [`SB_CHAT_LISTEN`](/doc/sb_chat_listen-4QEbZ4X4CU) | Starts/stops listening to the group chat. Messages will come to you with [`SB_CHAT_MESSAGE`](/doc/sb_chat_message-lAFyaTFRj5) event. |
| [`SB_CHAT_MUTE`](/doc/sb_chat_mute-d3WNfFY6h8) | Mutes chat for a specific group member. |
| **Group notices commands** |
| [`SB_NOTICE_SEND`](/doc/sb_notice_send-heqF1Aisw6) | Sends out the group notice. |



:::info
The numeric values are available [here](/doc/headersconstants-GcLQFSzXtr).

:::

---

**Documents**

- [SB_ADJUST_GROUP_ROLE](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_adjust_group_role-TYtOSGKLJq)
- [SB_AVATAR_GROUP](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_avatar_group-DloC6llFSi)
- [SB_CHAT_LISTEN](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_chat_listen-4QEbZ4X4CU)
- [SB_CHAT_MUTE](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_chat_mute-d3WNfFY6h8)
- [SB_CHAT_SAY](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_chat_say-6dgGIynZ7k)
- [SB_GROUP_EJECT](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_group_eject-6l9XXx2xJW)
- [SB_INVITE_SEND](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_invite_send-rTGYNssvpT)
- [SB_NOTICE_SEND](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_notice_send-heqF1Aisw6)
- [SB_RESET_ADMINBOT](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_reset_adminbot-Dy4iSJsvnf)
- [SB_SETUP_DEBUG](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_setup_debug-hvsycYfAX0)
- [SB_SETUP_DEVICENAME](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_setup_devicename-Qggx3N4IsR)
- [SB_SETUP_SETGROUP](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_setup_setgroup-3NAcXE4AdF)
- [SB_SETUP_SETGROUPUUID](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_setup_setgroupuuid-G6Ery397la)
- [SB_SETUP_SETLINK](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_setup_setlink-flLF1B5Oak)
- [SB_SETUP_SETOPTIONS](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_setup_setoptions-AfDC6GgN4l)
- [SB_STATUS_QUERY](https://sb-docs-dev.getoutline.com/s/dev/doc/sb_status_query-i2HUb8WGFw)