# Function bindings::zaun::bot::presence::set

> Sets the bot's status and activity (`signal.presence`). The host shows changes at most every 3 s: a later call within that time replaces an earlier one that has not gone out. The b

`zaun_bot::bindings::zaun::bot::presence::set` · Function

```rust
pub fn set(status: Status, activity: Option<&Activity>)
```

Sets the bot's status and activity (`signal.presence`). The host shows changes at most
every 3 s: a later call within that time replaces an earlier one that has not gone out.
The bot is `online` without an activity when it starts.

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/bindings/zaun/bot/presence/fn.set.html)
