0.2.10 • Published 1 year ago

adamant-botfactory v0.2.10

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
1 year 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

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago