# Initialising TotalControl

TotalControl for Bots has to know the Bot name you are going to use.

## Sending [BOT_SETUP_SETBOT](/doc/b02cc97d-0916-4132-9288-0c3dc50f16c7) command

```csharp
llMessageLinked(LINK_SET,BOT_SETUP_SETBOT,"My bot name","BOT API TOKEN"); 
```

(yes, the above example is correct: you can pass a string value instead of a key)

### Bot API token

To protect your bot from abusive scripters, you have to pass the Bot API token while initializing - ([read more about Bot API tokens](/doc/c2ff5da0-95cd-4393-8f14-0f153700cfd4)).

## Determining Success

TotalControl for Bots will raise the event after [BOT_SETUP_SETBOT](/doc/b02cc97d-0916-4132-9288-0c3dc50f16c7)

* [BOT_SETUP_SUCCESS](/doc/d482a906-a622-4f03-8f59-4638d4859b6c) indicates that this bot can be used now,
* [BOT_SETUP_FAILED](/doc/a73e2dda-c4e5-47b7-bff5-6fe28b7a9e09) indicates that there were an error setting the bot. See [TotalControl Status Codes](/doc/dc07ab33-96a4-487b-81ec-0d4a281da391) for details.