Open chat bots: easily create an open chat bot via npm

Super excited to announce the release of version 1.1.0-beta.5 of the create-openchat-bot CLI toolkit :partying_face:

Instantly create openchat bots from your terminal.

Prerequisites:

You’ll need to have dfx cli and rust installed first before using the templates

Installation:

Install the package globally

npm install -g create-openchat-bot

Usage:

npx create-openchat-bot

This will:

  1. Ask you which type of bot you want to create (offchain or onchain) - the next version will have the specific languages i.e Motoko, Typescript or Rust.
  2. Ask for your bot’s name
  3. Create a new directory with the template
  4. Set up the necessary configuration
  5. Run the appropriate setup script
  6. Display the bot URL (for a canister bot) or the command for starting your bot server (for your off-chain bot)

Registering your bot:

Now you can easily register a bot on oc mainnet (no need to run open chat locally) using the steps here

Full link to the package can be found here


Side note: The package is currently in beta mode for testing purposes and only supports the Rust SDK. The Motoko and TypeScript SDKs are in the pipeline.

Looking forward to your feedback!

Not a huge fan of npm , never the less I do appreciate the work that has gone into this. Tagging @hpeebles as he has the best feedback.

Thank you @ZackDS

But I’d like to know why you’re skeptical on npm

Is there any recommendation where to host it?

Kindly clarify, hosting the bot you’ve made using the package?

I am excited to announce the release of a new stable version 1.1.1 of the create-openchat-bot CLI toolkit :partying_face:

This new update fixes a few issues:

  1. We added new BotDefinition fields: default_subscriptions and data_encoding, which were causing an error when creating an on-chain bot.
  2. Reduced package size: The package is now much smaller (4.3 kB) and only includes the essential files:
    • README.md
    • bin/create-openchat-bot.js
    • package.json

Easily create openchat bots using the toolkit :backhand_index_pointing_right: here