Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

labonet/Tiby.JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TibyAi.js Logo

🚀 Introduction

A simple official npm package used to fetch tiby api (Official TSAZ Product)

💿 Setup

npm install tiby.js
// your nodejs workspace
const Tiby = require("tiby.js");
const client = new Tiby.Client();

📟 Question

// your nodejs workspace
const Tiby = require("tiby.js");
const client = new Tiby.Client();

client.question("Ciao tiby").then(res => {
    console.log(res)
})

📽 Function

// your nodejs workspace
const Tiby = require("tiby.js");
const client = new Tiby.Client();

async function AskToTiby(qst) {
    let res = await client.question(qst);
    return res;
}

console.log(AskToTiby("ciao"));