Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
A framework for creating ActivityPub bots
An event handler invoked when a follow request the bot sent is accepted.
An event handler for a follow request to the bot.
An event handler for a like of a message.
An event handler for a message mentioned to the bot.
An event handler for a message shown to the bot's timeline. To listen to this event, your bot needs to follow others first.
An event handler for a quote of the bot's message.
An event handler for an emoji reaction to a message.
An event handler invoked when a follow request the bot sent is rejected.
An event handler for a reply to the bot.
An event handler for undoing an emoji reaction to a message.
An event handler for an unfollow event from the bot.
An event handler for undoing a like of a message.
An event handler for a vote in a poll. This event is only triggered when the bot is the author of the poll, and the vote is made by another actor. Note that if the poll allows multiple selections, this event is triggered multiple times, once for each option selected by the actor.
A definition of a custom emoji. It can be either a remote image URL or a local image file.
A deferred Emoji (provided by Fedify), which is a function that
takes a Session and returns an Emoji. This is useful for
creating emojis that depend on the session data.
A branded type for a single emoji character (more exactly, a single Unicode grapheme cluster of emoji). This is used to represent a single emoji in a string format. It is not a full-fledged emoji object, but rather a string that is guaranteed to be a single emoji.
A tagged template literal function that creates an Emoji from
a string. It is a simple wrapper around the String.raw function,
but it also checks if the resulting string is a valid emoji.
A type guard that checks if a value is a single emoji character.
An event handler invoked when a follow request the bot sent is accepted.
An event handler for a follow request to the bot.
An event handler for a like of a message.
An event handler for a message mentioned to the bot.
An event handler for a message shown to the bot's timeline. To listen to this event, your bot needs to follow others first.
An event handler for a quote of the bot's message.
An event handler for an emoji reaction to a message.
An event handler invoked when a follow request the bot sent is rejected.
An event handler for a reply to the bot.
An event handler for undoing an emoji reaction to a message.
An event handler for an unfollow event from the bot.
An event handler for undoing a like of a message.
An event handler for a vote in a poll. This event is only triggered when the bot is the author of the poll, and the vote is made by another actor. Note that if the poll allows multiple selections, this event is triggered multiple times, once for each option selected by the actor.
A message in the ActivityPub network. It is a thin wrapper around
a Fedify object: an Article, a ChatMessage, a Note, or a Question.
A possible message class.
The visibility of a message.
A repository for storing bot data using a key-value store.
The prefixes for key-value store keys used by the bot.
A repository decorator that adds an in-memory cache layer on top of another repository. This is useful for improving performance by reducing the number of accesses to the underlying persistent storage, but it increases memory usage. The cache is not persistent and will be lost when the process exits.
A repository for storing bot data in memory. This repository is not persistent and is only suitable for testing or development.
- addFollowee
- addFollower
- addMessage
- addSentFollow
- countFollowers
- countMessages
- countVoters
- countVotes
- followRequests
- followees
- followers
- getFollowee
- getFollowers
- getKeyPairs
- getMessage
- getMessages
- getSentFollow
- hasFollower
- keyPairs
- messages
- polls
- removeFollowee
- removeFollower
- removeMessage
- removeSentFollow
- sentFollows
- setKeyPairs
- updateMessage
- vote
A repository for storing bot data.
A UUID (universally unique identifier).
Applies <code> tag to a text. You can use this function to create
a CodeText tree.
A text tree that renders a inline code. You normally don't need to instantiate this directly; use the code function instead.
Renders a custom emoji. You can use this function to create a CustomEmojiText tree.
A text tree that renders a custom emoji. You normally don't need to instantiate this directly; use the customEmoji function instead.
Applies <em> tag to a text. You can use this function to create an
EmText tree.
A text tree that renders an <em> text. You normally don't need to
instantiate this directly; use the em function instead.
Creates a hashtag. You can use this function to create a HashtagText tree.
A text tree that renders a hashtag. You normally don't need to instantiate this directly; use the hashtag function instead.
Creates a link to the given href with the label. You can use this
function to create a LinkText tree.
A text tree that renders a link. You normally don't need to instantiate this directly; use the link function instead.
Renders a Markdown text. You can use this function to create
a MarkdownText tree. The mentions in the Markdown text
will be rendered as links unless the mentions option is set to
false.
A text tree that renders a Markdown text. You normally don't need to instantiate this directly; use the markdown function instead.
Mentions an actor by its fediverse handle. You can use this function to create a MentionText tree. The label of the mention will be the same as the handle.
Checks if a given actor is mentioned in a text.
A text tree that renders a mention. You normally don't need to instantiate this directly; use the mention function instead.
A function that creates a PlainText tree. It only does two simple things:
Applies <strong> tag to a text. You can use this function to create a
StrongText tree.
A text tree that renders a <strong> text. You normally don't need to
instantiate this directly; use the strong function instead.
A text tree that renders a template string with values. You normally don't need to instantiate this directly; use the text function instead.
A tree structure representing a text with formatting. It does not only render the text but also extract tags (e.g., mentions) from it.