Big change coming to BotKit: *multi-bot support*!
Uncategorized
1
Posts
1
Posters
1
Views
-
Big change coming to BotKit: multi-bot support! :botkit: :botkit: :botkit:
Currently, each BotKit instance can only run a single bot. We're redesigning the architecture to let you host multiple bots—both static and dynamically created—on a single instance.
The new API will look like this:
const instance = createInstance({ kv }); const greetBot = instance.createBot("greet", { ... }); const weatherBots = instance.createBot(async (ctx, id) => { ... });Check out the full design: