1.3.2 • Published 3 years ago
@trustify/tipbot.ts v1.3.2
IOTA TipBot JS Library
How to use
npm install @trustify/tipbot.ts
Add
const tipbot = require('@trustify/tipbot.ts');
let response = await tipbot.add("Felix", "HYMYMBXAWOTQSSCMUHLTEZM9ODBRQHQXE9YYITUIQKTLMIKHMUTSETAQIFRCNKIVFNEETSXDNHAYHYSVCHPXUVQDMX")
console.log(response)
// -> Address added.
Tip
const tipbot = require('@trustify/tipbot.ts');
let response = await tipbot.tip("Felix");
console.log(response)
// -> HYMYMBXAWOTQSSCMUHLTEZM9ODBRQHQXE9YYITUIQKTLMIKHMUTSETAQIFRCNKIVFNEETSXDNHAYHYSVCHPXUVQDMX
How to develop
Clone the repo and link it with npm
git clone https://github.com/trusty-code/tipbot.ts
cd tipbot.ts
npm link
now you can link it to your bot implementation
cd your/bot/path
npm link @trustify/tipbot.ts