1.1.0 • Published 3 years ago

@foxreistr/tbl-api.js v1.1.0

Weekly downloads
76
License
ISC
Repository
github
Last release
3 years ago

tbl-api.js

Turkey Bot List API Library.

How to use

Example:

const TBL = require("@foxreistr/tbl-api.js");
const tbl = new TBL("TBL_TOKEN_HERE", client); // autoposts by default every 30 minutes if client is provided

// search for bots
(async () => {
    const bots = await tbl.search('turkey');
    console.log(bots);
})();

// fetch image embeds
const fs = require('fs');
(async () => {
    const embed = await tbl.embed('792986882215510067');
    fs.writeFileSync('image.png', embed);
})();

// fetch most 10 liked bots
(async () => {
    const mostLiked = await tbl.fetchMostLikedBots();
    console.log(mostLiked);
})();

// fetch most 10 recent bots
(async () => {
    const recentBots = await tbl.fetchLatestBots();
    console.log(recentBots);
})();

If you need any support, join the support server.

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago