1.0.3 • Published 3 years ago

bytestobits v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

How to Use

const btb = require("bytestobits");
btb.setToken("TOKEN");

async function command() {
  await word();
}

Before you do any requests, you HAVE to set your Token otherwise you will get an error! You may only do 50 requests in a minute, if you go over that limit multiple times you might get banned from the API

Questions

If you have any questions about the API join the BtB Discord or look here

Methods

async lyrics(song: string)

The lyrics method gets the lyrics endpoint of BtB! It returns a json with these values: title -> string artist -> string lyrics -> string

IF if errors, the json will only contain: GeniusError -> string

async madlibs()

The madlibs function gets the madlibs endpoint of BtB, it returns you a json with: title -> string variables -> string[] text -> string questions -> number

async meme()

returns: title -> string url -> string link -> string subreddit -> string upvotes -> number downvotes -> number comments -> number

reddit(subreddit: string, limit?: number)

returns: title -> string url -> string link -> string subreddit -> string upvotes -> number downvotes -> number comments -> number text -> string

async text()

returns a String

async word()

returns a string

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago