new Client(token)
Creates new api client
Parameters:
Name | Type | Description |
---|---|---|
token |
API key |
Methods
(async) base64(data, type)
Base64 encoder/decoder
Parameters:
Name | Type | Description |
---|---|---|
data |
string | message to encode/decode |
type |
string | ENCODE or DECODE |
(async) cat()
Random cat image
(async) chatbot(options) → {Promise.<String>}
AI chatbot
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The options
Properties
|
Returns:
The message by the chatbot
- Type: Promise.<String>
(async) deno(moduleName)
get package information from deno registry
Parameters:
Name | Type | Description |
---|---|---|
moduleName |
string | Module name |
(async) discordToken()
Returns fake discord bot token
(async) dog()
Random dog image
(async) duck()
Random duck image
(async) fox()
Random fox image
(async) me()
Returns current user info
(async) meme(sbr)
Returns meme object
Parameters:
Name | Type | Description |
---|---|---|
sbr |
string | Subreddit |
(async) morseCode(data, type)
Morse code encoder/decoder
Parameters:
Name | Type | Description |
---|---|---|
data |
string | message to encode/decode |
type |
string | ENCODE or DECODE |
(async) npm(moduleName)
get package information from npm registry
Parameters:
Name | Type | Description |
---|---|---|
moduleName |
string | Module name |
(async) pokemon(name)
Pokemon info
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Pokemon name or id |
(async) pypi(moduleName)
get package information from pypi registry
Parameters:
Name | Type | Description |
---|---|---|
moduleName |
string | Module name |
(async) reverse(message)
Reverse a message
Parameters:
Name | Type | Description |
---|---|---|
message |
string | Message to reverse |
(async) roast()
Random roast
(async) stats()
Returns API stats
(async) tokeninfo(token)
Returns discord bot token information
Parameters:
Name | Type | Description |
---|---|---|
token |
string | Discord bot token |