JSR

Creates an Instance that can host multiple bots sharing the same infrastructure.

Examples

Example 1

import { createInstance } from "@fedify/botkit";
import { MemoryKvStore } from "@fedify/fedify/federation";
const instance = createInstance<void>({ kv: new MemoryKvStore() });
const greetBot = instance.createBot("greet", { username: "greetbot" });
export default instance;

Type Parameters

TContextData = void

View code

Parameters

The options for creating the instance.

Return Type

Read the original on jsr.io ↗