Skip to content

Commit

Permalink
docs(examples): show manual presence request
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Jan 11, 2025
1 parent d041135 commit 3651934
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ void async function main () {
deviceUUID: credentials.deviceUUID
});

// You can maually make presence requests.
await pronote.presence(session);

// Start presence requests every 2 minutes.
pronote.startPresenceInterval(session);
// `setInterval` return value will be stored under `session.presence`.
Expand Down

0 comments on commit 3651934

Please sign in to comment.