# Initialising AdminBot

AdminBot have to know the SL group name you are going to use.

## Sending [SB_SETUP_SETGROUP](/doc/24beb558-feb9-4229-8928-7ee356094c77) command

You can set the group in two ways:

* By calling [SB_SETUP_SETGROUP](/doc/24beb558-feb9-4229-8928-7ee356094c77) command (with the group name).
* By calling [SB_SETUP_SETGROUPUUID](/doc/7fc8880f-d44c-4ec0-8faa-647ed639586e) command (with the group UUID).

```csharp
llMessageLinked(LINK_SET, SB_SETUP_SETGROUP, "My group name", "SECURITY CODE");
```

OR

```csharp
llMessageLinked(LINK_SET, SB_SETUP_SETGROUPUUID, "SECURITY CODE", "group-UUID");
```

(yes, the above examples are correct: you can pass the string value instead of key)

## Security Code

To protect your group from abusive scripters, you have to pass the group security code while initializing - (read more about security code).

## Determining Success

AdminBot will raise the event after [SB_SETUP_SETGROUP](/doc/24beb558-feb9-4229-8928-7ee356094c77) or [SB_SETUP_SETGROUPUUID](/doc/7fc8880f-d44c-4ec0-8faa-647ed639586e):

* [SB_SETUP_SUCCESS](/doc/4986d1ed-7c53-42ef-9b85-3440b1db5189) indicates that this group can be used now
* [SB_SETUP_FAILED](/doc/94885e73-76a4-4e7e-99d7-c6397f085fa0) indicates that there were an error setting the group.  
  See [AdminBot Status Codes](/doc/40c94b4e-2fc3-4e67-8e72-8a77efb44397) for details.