@botkit@hollo.social

Coming soon in 0.2.0: Native post support!

We're excited to share a preview of the upcoming quoting features in BotKit 0.2.0. This update will make it easier for your bots to engage with quoted content across the fediverse.

The quoting feature set includes:

Here's a quick example of how you can use the quote detection:

bot.onQuote = async (session, quote) => {
  // The quote parameter is a Message object representing the post that quoted your bot
  await quote.reply(text`Thanks for quoting my post, ${quote.actor}!`);
  
  // You can access the original quoted message
  const originalPost = quote.quoteTarget;
  console.log(`Original message: ${originalPost?.text}`);
};

And creating quote posts is just as simple:

// Quote in a new post
await session.publish(
  text`I'm quoting this interesting message!`,
  { quoteTarget: someMessage }
);

// Or quote in a reply
await message.reply(
  text`Interesting point! I'm quoting another relevant post here.`,
  { quoteTarget: anotherMessage }
);

Remember that quoting behavior may vary across different implementations—some platforms like Misskey display quotes prominently, while others like Mastodon might implement them differently.

Want to try these features right now? You can install the development version from JSR:

deno add jsr:@fedify/botkit@0.2.0-dev.90+d6ab4bdc

We're looking forward to seeing how you use these quoting capabilities in your bots!

jsr.io

@fedify/botkit - JSR

@fedify/botkit on JSR: A framework for creating ActivityPub bots

1 quote

@hongminhee@hackers.pub

이것으로 BotKit 0.2.0에 넣으려고 생각했던 기능은 다 추가했다. 이대로 0.2.0 출시하면 되려나? 뭔가 놓친 게 없으려나? 🤔

hollo.social

Coming soon in #BotKit 0.2.0: …

Coming soon in #BotKit 0.2.0: Native #quote post support! We're excited to share a preview of the upcoming quoting features in BotKit 0.2.0. This update will make it easier for your bots to engage with quoted content across the fediverse. The quoting feature set includes: - Detecting when someone quotes your bot's posts with the new [`Bot.onQuote`] event handler - Accessing quoted content through the [`Message.quoteTarget`] property - Creating quote posts using the [`quoteTarget`] option in [`Session.publish()`] and [`Message.reply()`] methods Here's a quick example of how you can use the quote detection: ```typescript bot.onQuote = async (session, quote) => { // The quote parameter is a Message object representing the post that quoted your bot await quote.reply(text`Thanks for quoting my post, ${quote.actor}!`); // You can access the original quoted message const originalPost = quote.quoteTarget; console.log(`Original message: ${originalPost?.text}`); }; ``` And creating quote posts is just as simple: ```typescript // Quote in a new post await session.publish( text`I'm quoting this interesting message!`, { quoteTarget: someMessage } ); // Or quote in a reply await message.reply( text`Interesting point! I'm quoting another relevant post here.`, { quoteTarget: anotherMessage } ); ``` Remember that quoting behavior may vary across different #ActivityPub implementations—some platforms like Misskey display quotes prominently, while others like Mastodon might implement them differently. Want to try these features right now? You can install the development version from [JSR]: ``` deno add jsr:@fedify/botkit@0.2.0-dev.90+d6ab4bdc ``` We're looking forward to seeing how you use these quoting capabilities in your bots! #fedidev [`Bot.onQuote`]: https://botkit.fedify.dev/concepts/events#quote [`Message.quoteTarget`]: https://botkit.fedify.dev/concepts/message#quotes [`quoteTarget`]: https://botkit.fedify.dev/concepts/message#quoting [`Session.publish()`]: https://botkit.fedify.dev/concepts/message#publishing-a-message [`Message.reply()`]: https://botkit.fedify.dev/concepts/message#replying-to-a-message [JSR]: https://jsr.io/@fedify/botkit@0.2.0-dev.90+d6ab4bdc

@botkit@hollo.social

Coming soon in 0.2.0: Native post support!

We're excited to share a preview of the upcoming quoting features in BotKit 0.2.0. This update will make it easier for your bots to engage with quoted content across the fediverse.

The quoting feature set includes:

Here's a quick example of how you can use the quote detection:

bot.onQuote = async (session, quote) => {
  // The quote parameter is a Message object representing the post that quoted your bot
  await quote.reply(text`Thanks for quoting my post, ${quote.actor}!`);
  
  // You can access the original quoted message
  const originalPost = quote.quoteTarget;
  console.log(`Original message: ${originalPost?.text}`);
};

And creating quote posts is just as simple:

// Quote in a new post
await session.publish(
  text`I'm quoting this interesting message!`,
  { quoteTarget: someMessage }
);

// Or quote in a reply
await message.reply(
  text`Interesting point! I'm quoting another relevant post here.`,
  { quoteTarget: anotherMessage }
);

Remember that quoting behavior may vary across different implementations—some platforms like Misskey display quotes prominently, while others like Mastodon might implement them differently.

Want to try these features right now? You can install the development version from JSR:

deno add jsr:@fedify/botkit@0.2.0-dev.90+d6ab4bdc

We're looking forward to seeing how you use these quoting capabilities in your bots!

jsr.io

@fedify/botkit - JSR

@fedify/botkit on JSR: A framework for creating ActivityPub bots