We're excited to announce that #BotKit 0.2.0 will introduce custom emoji support! This feature allows your bots to express themselves with more personality and engagement.

What's included:

  • Add custom emojis to your bot with Bot.addCustomEmojis()
  • Use emoji in messages with the customEmoji() function
  • Support for both local image files and remote URLs as emoji sources
  • Full integration with BotKit's text formatting system

Simple example:

// Define custom emojis const emojis = bot.addCustomEmojis({ botkit: { file: "./botkit.png", type: "image/png" }, fedify: { url: "https://fedify.dev/logo.png", type: "image/png" } }); // Use in messages await session.publish( text`Hello world! ${customEmoji(emojis.botkit)}` );

Want to try it early? You can install the development version from JSR today:

deno add jsr:@fedify/[email protected]+8a0438e6

#ActivityPub #fedidev #custom_emoji

Text | BotKit by Fedify

The Text object is a mini-language for representing rich text formatting commonly used in the fediverse. Learn how to format your text using the Text object.