Skip to main content

Built and signed on GitHub Actions

A framework for creating ActivityPub bots

This package works with Deno
This package works with Deno
JSR Score
88%
Published
2 months ago (0.1.1)
T
AcceptEventHandler

An event handler invoked when a follow request the bot sent is accepted.

T
FollowEventHandler

An event handler for a follow request to the bot.

T
LikeEventHandler

An event handler for a like of a message.

T
MentionEventHandler

An event handler for a message mentioned to the bot.

T
MessageEventHandler

An event handler for a message shown to the bot's timeline. To listen to this event, your bot needs to follow others first.

T
RejectEventHandler

An event handler invoked when a follow request the bot sent is rejected.

T
ReplyEventHandler

An event handler for a reply to the bot.

T
SharedMessageEventHandler

An event handler for a message shared by the bot. To listen to this event, your bot needs to follow others first.

T
UnfollowEventHandler

An event handler for an unfollow event from the bot.

T
UnlikeEventHandler

An event handler for undoing a like of a message.

I
BotWithVoidContextData

A specialized Bot tpe that doesn't require context data.

f
createBot

Creates a Bot instance.

I
PagesOptions

Options for the web pages of the bot.

T
AcceptEventHandler

An event handler invoked when a follow request the bot sent is accepted.

T
FollowEventHandler

An event handler for a follow request to the bot.

T
LikeEventHandler

An event handler for a like of a message.

T
MentionEventHandler

An event handler for a message mentioned to the bot.

T
MessageEventHandler

An event handler for a message shown to the bot's timeline. To listen to this event, your bot needs to follow others first.

T
RejectEventHandler

An event handler invoked when a follow request the bot sent is rejected.

T
ReplyEventHandler

An event handler for a reply to the bot.

T
SharedMessageEventHandler

An event handler for a message shared by the bot. To listen to this event, your bot needs to follow others first.

T
UnfollowEventHandler

An event handler for an unfollow event from the bot.

T
UnlikeEventHandler

An event handler for undoing a like of a message.

I
FollowRequest

A follow request to the bot.

I
AuthorizedMessage

An authorized message in the ActivityPub network. Usually it is a message published by the bot itself.

I
AuthorizedSharedMessage

An authorized shared message in the ActivityPub network. Usually it is a message shared by the bot itself.

I
Message

A message in the ActivityPub network. It is a thin wrapper around a Fedify object: an Article, a ChatMessage, a Note, or a Question.

T
MessageClass

A possible message class.

I
MessageShareOptions

Options for sharing a message.

T
MessageVisibility

The visibility of a message.

I
SharedMessage

A shared message in the ActivityPub network. It is a thin wrapper around an Announce, which is a Fedify object.

I
AuthorizedLike

An authorized like of a message. Usually it is a like that the bot itself made.

I
Like

A like of a message. It is a thin wrapper around a Like, which is a Fedify object.

I
SessionGetOutboxOptions

Options for getting messages from the bot's outbox.

I
SessionPublishOptions

Options for publishing a message.

I
SessionPublishOptionsWithClass

Options for publishing a message with a specific class.

f
code

Applies <code> tag to a text. You can use this function to create a CodeText tree.

c
CodeText

A text tree that renders a inline code. You normally don't need to instantiate this directly; use the code function instead.

f
em

Applies <em> tag to a text. You can use this function to create an EmText tree.

c
EmText

A text tree that renders an <em> text. You normally don't need to instantiate this directly; use the em function instead.

f
hashtag

Creates a hashtag. You can use this function to create a HashtagText tree.

c
HashtagText

A text tree that renders a hashtag. You normally don't need to instantiate this directly; use the hashtag function instead.

f
isText

Checks if a value is a Text tree.

c
LinkText

A text tree that renders a link. You normally don't need to instantiate this directly; use the link function instead.

f
markdown

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.

c
MarkdownText

A text tree that renders a Markdown text. You normally don't need to instantiate this directly; use the markdown function instead.

I
MarkdownTextOptions

The options for rendering a Markdown text.

f
mention

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.

f
mentions

Checks if a given actor is mentioned in a text.

c
MentionText

A text tree that renders a mention. You normally don't need to instantiate this directly; use the mention function instead.

c
PlainText

A text tree that renders a plain text. You normally don't need to instantiate this directly; use the plainText function instead.

f
plainText

A function that creates a PlainText tree. It only does two simple things:

f
strong

Applies <strong> tag to a text. You can use this function to create a StrongText tree.

c
StrongText

A text tree that renders a <strong> text. You normally don't need to instantiate this directly; use the strong function instead.

c
TemplatedText

A text tree that renders a template string with values. You normally don't need to instantiate this directly; use the text function instead.

I
Text

A tree structure representing a text with formatting. It does not only render the text but also extract tags (e.g., mentions) from it.

f
text

A template string tag that creates a Text tree.