bytestobits

    1.0.3 • Public • Published

    bytesToBitsAPI


    npm Docs

    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

    Install

    npm i bytestobits

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    7.34 kB

    Total Files

    11

    Last publish

    Collaborators

    • lostnukie