Skip to content

Commit

Permalink
Added some words about persistent client data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mydayyy committed Sep 22, 2017
1 parent 19e6c52 commit 527b632
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,14 @@ Will be called when the bot loses connection to the teamspeak server. The bot wi

<br>

## Managing (persistent) data
## Managing (persistent) data

You are provided two kind of API's by the bot to manage persistent values.
You can either save global persistent data or client persistent data.
Client persistent data is bound to the client database id. That means that
when a client is connected in multiple instances but with the same identity,
they will share the persistent data.

You can save and retrieve global persistent data with the functions
`set_value` and `get_value`. Client persistent data can be set by using
`set_client_value` and `get_client_value`.

0 comments on commit 527b632

Please sign in to comment.