# BOT_EVENT_LISTEN_INVENTORY

Raised when the Bot receives an inventory item.

```snippet totalcontrol-event-reference-SHMdGBygzz
str | Object details in the format `"name of sender;object uuid;object name"`
id  | UUID of the person who sent the object
```

## Example

```csharp
link_message( integer sender_num, integer num, string str, key id ) {
    /////////////////// Bot listen inventory event
    if(num==BOT_EVENT_LISTEN_INVENTORY) {
        // Split details with a semi colon ";"
        list details = llParseString2List(str, [";"], []);
    	llOwnerSay("Sender name: " + llList2String(details,0));
    	llOwnerSay("Object UUID: " + llList2String(details,1));
    	llOwnerSay("Object Name: " + llList2String(details,2));
    	llOwnerSay("Sender UUID: " + (string)id);
    }
}
```