Skip to main content
Home
This release is a pre-release — the latest non-prerelease version of @fedify/botkit is 0.2.1. Jump to this version

@fedify/botkit@0.3.0-dev.119+a1068dd9
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
a week ago (0.3.0-dev.119+a1068dd9)
property Bot.onVote

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. If the poll allows multiple selections, this event is triggered multiple times, once for each option selected by the actor.

Note that this event can be triggered even if the voter vote an option multiple times or multiple options for a poll that disallows multiple selections. You should validate the vote in the event handler by storing the votes in a persistent store, and checking if the vote is valid. (This behavior can subject to change in the future.)

Type

VoteEventHandler<TContextData>

New Ticket: 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 Bot } from "@fedify/botkit/bot";
or

Import directly with a jsr specifier

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