Methods
(async, static) decodeToken(token) → {Object}
Decode tokens for a discord bot.
Parameters:
Name | Type | Description |
---|---|---|
token |
string | The bot token. |
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. |
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. |
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. |
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. |
Returns:
- Type: Array
(async, static) randomString(length) → {string}
Get a random string!
Parameters:
Name | Type | Description |
---|---|---|
length |
number | The length of the random string. |
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. |
Returns:
- Type: Object