Skip to main content
Home
This release is 5 versions behind 0.3.1 — the latest version of @fedify/botkit. Jump to latest

@fedify/botkit@0.2.0-dev.84+c997c6a6
Built and signed on GitHub Actions

Works with
This package works with Deno
This package works with Deno
JSR Score88%
Downloads24/wk
Published9 months ago (0.2.0-dev.84+c997c6a6)

A framework for creating ActivityPub bots

interface BotWithVoidContextData
extends Bot<void>

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

Methods

getSession(
origin: string | URL,
contextData: void,
): Session<void>

Gets a new session to control the bot for a specific origin and context data.

getSession(context: Context<void>): Session<void>

Gets a new session to control bot for a specific Fedify context.

getSession(origin: string | URL): Session<void>

Gets a new session to control the bot for a specific origin and context data.

The fetch API for handling HTTP requests. You can pass this to an HTTP server (e.g., Deno.serve(), Bun.serve()) to handle incoming requests.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/botkit

Import symbol

import { type BotWithVoidContextData } from "@fedify/botkit/bot";
or

Import directly with a jsr specifier

import { type BotWithVoidContextData } from "jsr:@fedify/botkit/bot";