Skip to content

Adamant-im/adamant-botfactory

Repository files navigation

botfactory

Minimalist bot framework for ADAMANT.

Installation

You can install it using one of the popular package managers, e.g. using npm:

npm install adamant-botfactory

Example

import { createBot } from "adamant-botfactory";

const nodes = [
  "http://localhost:36666",
  "https://endless.adamant.im",
  // ...
];

const bot = createBot(process.env.PASS_PHRASE, {
  nodes,
});

bot.command("start", async (usr) => {
  const res = await usr.balance();

  usr.reply(`Hello! Your balance is ${res.balance}.`);
});

bot.start();

About

The starting point to create a bot for ADAMANT Messenger

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published