0.2.10 • Published 5 months ago

adamant-botfactory v0.2.10

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
5 months ago

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();
0.2.10

5 months ago

0.2.9

6 months ago

0.2.8

6 months ago

0.2.7

6 months ago

0.2.6

6 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.0

10 months ago