Skip to content

IOTA TipBot typescript library - shared modules of Telegram and Discord TipBot.

Notifications You must be signed in to change notification settings

trusty-code/tipbot.ts

Repository files navigation

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

About

IOTA TipBot typescript library - shared modules of Telegram and Discord TipBot.

Resources

Stars

Watchers

Forks

Packages

No packages published