3.7.5 • Published 3 years ago

comm-api.js v3.7.5

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

comm-api.js

A wrapper for my api.

Installation

NPM -

npm i comm-api.js

Yarn -

yarn add comm-api.js

Examples

Joke endpoint:

const api = require('comm-api.js')
api.joke().then(m => console.log(m))

Chatbot endpoint:

const api = require('comm-api.js')
api.chatbot('hey').then(m => console.log(m)) // hello!

List of all the functions:

Animals

FunctionsRequired ParametersDescription
bird()noneReturns random bird images (4k).
cat()noneProvides random cat facts and images.
dog()noneProvides randomg dog facts and images.
duck()noneReturns random duck images.
monkey()noneReturns random monkey images (4k).
squirrel()noneReturns random squirrel images (4k).

GIFs

FunctionsRequired ParamtersDescription
gif()typeGives a random gif of the specified type, available types: hug, pat, blush, slap, stare, trigger.

Image Manipulation:

FunctionsRequired ParamtersDescription
ad()imagePuts the provided image on an advertisement board.
alwaysHasBeen()text1, text2Puts the provided text on an always has been meme.
captcha()textPuts the provided text on a reCaptcha.
delete()imageDeletes a given image.
greyscale()imageApplies the greyscale filter on the provided image.
pepeSign()textDraws the provided text on a sign holded by a pepe.
shit()imageDraws the provided image on a "Ew I stepped in shit" meme.
slap()image1, image2Slap someone, image1 is the person slapping, image2 is the person getting slapped.
snipe()imageSnipe someone.
surprised()textDraws the provided text on a surprised pikachu.
woah()textPuts the provided text on a "woah! thats worthless" meme.
wasted()imageApplies the GTA5 Wasted overlay on the image.

Info:

FunctionsRequired ParametersDescription
calendarmonth, year, tableReturns the calendar of a specified month and year, an optional "table" parameter can be provided to get the calendar in Ascii format.
country()countryReturns the info about a country.
countryFlag()countryProvides the flag of the provided country.
covid19country, all (optional)Provides Covid19 stats of a country, an optional all param can be provided (must be true) to get global Covid19 stats.
emojiInfo()emojiProvides info of an emoji (name or unicode can be provided)
fivemplayers()ipShows all the players playing on a fivem server.
fivemserverinfo()ipProvides info of a fivem server
ipLookup()ipThe IP or the host name to get info about.
mcServerStats()serverGets info about a certain minecraft server.
mcUserStats()usernameGets info of a certain minecraft player.
time()timezoneGets the time of a certain timezone.
timezones()noneProvides an array of all the timezones.
weather()location, degreeTypeReturns the weather of a specified location, an optinal "degreeType" parameter with the degree type of the weather can be provided, defaults to C, available degree types: C, F.

Others:

FunctionsRequired ParamtersDescription
ascii()textConverts text to ascii.
chatbot()textSomething that talks to you like a human.
doesnotexist()noneProvides images of people who dont exist.
emojiInfoemojiGets info about an emoji.
insult()noneProvides random insult.
joke()noneProvides a joke.
meme()noneProvides random memes.
number()noneGenerates random numbers.
password()lengthGenerates a random password of the provided length.
postToWebhook()webhookURL, username (optional), avatarURL (optional), messagePosts a message to the provided Discord Webhook URL. Webhook URLs are not stored.
quote()noneGenerates a random quote.
translate()to, textTranslates the given text to the given language, defaults to english.
word()noneGenerates a random word.

Text Manipulation:

FunctionsRequired ParamtersDescription
base64()type (encode/decode), textConverts text to and from base64.
binary()type (encode/decode), textConverts text to and from binary.
morse()type (encode/decode), textConverts text to and from morse.
owofy()textConverts text to some kind of text some kind of people use, hello -> hewwo
reverse()textReverses text.
sarcastic()textTurns text to SaRCAStIC text.
shuffle()textShuffles the given text.
zalgo()type (encode/decode), textConverts text to some weird and glitchy text.

All the functions return a promise, resolve the promise by either awaiting it or using .then(). All the Image Manipulation endpoints (except woah and alwaysHasBeen) require an image thats either a png, jpg or a gif. A webp doesn't work. The endpoints return a buffer.

Made by FC#5104 on Discord. Click Here to join the Support Server of the API. Click Here for the documentation of the API. Any suggestions are welcome.

3.7.1

3 years ago

3.7.0

3 years ago

3.7.5

3 years ago

3.6.5

3 years ago

3.6.2

3 years ago

3.6.0

3 years ago

3.0.0

3 years ago

2.5.0

3 years ago

2.0.0

3 years ago

1.5.0

3 years ago

1.0.0

3 years ago

0.5.0

3 years ago

0.0.1

3 years ago