JSR

A repository for storing bot data in memory. This repository is not persistent and is only suitable for testing or development.

Methods

Adds a followee to the repository.

Adds a follower to the repository.

Adds a message to the repository.

Adds a quote authorization stamp to the repository.

Adds a reference to a quote authorization stamp received for one of the bot's own quote posts.

Adds a sent follow request to the repository.

Counts the number of followers in the repository.

Counts the number of messages in the repository.

Counts the number of voters in a poll. Even if the poll allows multiple selections, each voter is counted only once.

Counts the votes for each option in a poll. If the poll allows multiple selections, each option is counted separately, and the same voter can vote for multiple options.

Finds the identifiers of the bot actors that follow the given actor. This is the reverse lookup of Repository.getFollowee: it answers the question “which bots on this instance follow this remote actor?”, which is used for routing incoming activities from followed actors to the right bots.

Finds a quote authorization stamp by the quote post it authorizes.

Finds the bot's quote message that depends on a received quote authorization stamp.

Finds the actor that issued a received quote authorization stamp.

Finds bot identifiers whose quote messages depend on a received quote authorization stamp.

Returns a view of this repository which is scoped to the given bot actor identifier. The returned view exposes the same operations without the identifier parameter.

Gets a followee from the repository.

Gets followers from the repository.

Gets the key pairs of a bot actor.

Gets a message from the repository.

Gets messages from the repository.

Gets a quote authorization stamp from the repository.

Gets a sent follow request from the repository.

Checks if the repository has a follower.

Removes a followee from the repository.

Removes a follower from the repository.

Removes a message from the repository.

Removes a quote authorization stamp from the repository.

Removes the reference to a received quote authorization stamp.

Removes a sent follow request from the repository.

Sets the key pairs of a bot actor.

Updates a message in the repository.

Records a vote in a poll. If the same voter had already voted for the same option in a poll, the vote will be silently ignored.

Read the original on jsr.io ↗