Class: duncte


duncte

The class for https://apis.duncte123.me

Source:

Methods

(async, static) decodeToken(token) → {Object}

Decode tokens for a discord bot.

Parameters:
Name Type Description
token string

The bot token.

Source:
Returns:
  • Type: Object

(async, static) getJoke(nsfw) → {Object}

Returns a random joke.

Parameters:
Name Type Description
nsfw boolean

If we allow the response to be nsfw.

Source:
Returns:
  • Type: Object

(async, static) getMeme(nsfw) → {Object}

Returns a random meme.

Parameters:
Name Type Description
nsfw boolean

If we allow the response to be nsfw.

Source:
Returns:
  • Type: Object

(async, static) love(name1, name2) → {Object}

Creates a loveship for two people!

Parameters:
Name Type Description
name1 string

The name of the first person.

name2 string

The name of the second person.

Source:
Returns:
  • Type: Object

(async, static) npm(count) → {Array}

Searches for some npm meanings.

Parameters:
Name Type Description
count number

The amount of results to return.

Source:
Returns:
  • Type: Array

(async, static) randomString(length) → {string}

Get a random string!

Parameters:
Name Type Description
length number

The length of the random string.

Source:
Returns:
  • Type: string

(async, static) ytChannel(apiKey, channelId) → {Object}

Fetch the view and sub count from a youtube channel.

Parameters:
Name Type Description
apiKey string

Your youtube api key.

channelId string

The channel id for the channel that you wanna view.

Source:
Returns:
  • Type: Object