Giter Club home page Giter Club logo

alexflipnote.js's Introduction

alexflipnote.js npm npm install size

A simple API Wrapper for AlexFlipnote's API

NPM

Installation

npm i -s alexflipnote.js

Tokens

Since AlexFlipnote recently added an Authorization feature to the API, ALL previous versions of this wrapper will no longer work and are considered to be deprecated!

Wondering how to get an Auth token to use your API ye? Well head on to https://discord.gg/DpxkY3x to request one.

Endpoints

Image

Function Params Description
birb() none Sends a birb image
cats() none Sends a cat image
dogs() none Sends a dog image
sadcat() none Sends a sad cat image
amiajoke() image Am I A Joke Meme
bad() image Show someone how bad they are
joke() image r/wooosh
salty() image Sends a salty image filter
blur() image Sends a blur image filter
invert() image Sends a inverted color image filter
bnw() image Sends a black and white image filter
deepfry() image Sends a deep fry image filter
pixelate() image Sends a pixelated image filter
magik() image Sends a magik image filter
jpegify() image Turns image into jpeg
snow() image Sends a snow image filter
gay() image Sends a gay image filter
wide() image Sends a wide Putin image filter
sepia() image Sends a Sepia image filter
communist() image Sends a communist image filter
what() image Sends an Earthbound WHAT meme
colorify() image c(optional) b(optional) Sends a colorify image filter
floor() image text The floor is lava
scroll() text Sends the Scroll of Truth
facts() text Sends the facts book
calling() text Tom&Jerry Tom calling Meme image
captcha() text Sends a Google Captcha image
fml() text Sends a F*** my life quote
achievement() text icon(optional) Sends a Minecraft Achievement image
challenge() text icon(optional) Sends a Minecraft Challenge image
supreme() text dark(optional) light(optional) Sends a Supreme image
didyoumean() top bottom Google Did you mean?
drake() top bottom Drake meme image
pornhub() text text2 Pornhub Logo image
ship() user user2 Ships 2 users
trash() face trash Points out someone is trash

Others

Function Params Description
color() hex Searches a Color

Params such as: image,user,user2,face,trash requires Discord CDN and MEDIA URLs

dark,light requires a boolean value formatted as a string ("true","false")

icons requires a number (int) value

text requires strings

All endpoints will return a Buffer except birb/cats/dogs/sadcat/color/fml

birb/cats/dogs/sadcat will return a JSON {file: "https://api.alexflipnote.dev/cats/zDm8l4maVQg_cats.png"}

color will return a JSON (example: Color)

fml will return a JSON {"text": "Today, I was running late for school and accidentally ran a red light and got pulled over. I couldn't find the registration and was freaking out, when the cop told me that he wouldn't give me a ticket if he could give me some advice. His advice? Don't wear your shirt inside-out. FML"}

Typings

I added a typings file and will be working to perfect it. This allows editors like VSC to use intellisense/autocomplete to suggest functions and help out with parameters and to see what you'll be receiving as a result of function calls.

Examples

Await/Async example

const client = require('alexflipnote.js');
const alexclient = new client('Your-API-Token-Here');

let link = await alexclient.image.cats();
let attachment = new Discord.MessageAttachment(link, "cat.png");
message.channel.send(attachment);

Colorify Example

const client = require('alexflipnote.js');
const alexclient = new client('Your-API-Token-Here');

let url = "https://cdn.discordapp.com/avatars/242263403001937920/37050aab01de8806e4bc1e2b83983439.webp?size=1024"

let link = await alexclient.image.colorify({image: url, c: "00ffd9", b: "000000"}));
let attachment = new Discord.MessageAttachment(link, "colorify.png");
message.channel.send(attachment);

Color Example

const client = require('alexflipnote.js');
const alexclient = new client('Your-API-Token-Here');
let body = await alexclient.others.color('00ffd9')
console.log(body)

returns:

{
  "blackorwhite_text": "#ffffff", 
  "brightness": 157, 
  "hex": "#00ffd9", 
  "image": "https://api.alexflipnote.dev/color/image/00ffd9", 
  "image_gradient": "https://api.alexflipnote.dev/color/image/gradient/00ffd9", 
  "int": 65497, 
  "name": "Bright Teal", 
  "rgb": "rgb(0, 255, 217)", 
  "rgb_values": {"r": 0, "g": 255, "b": 217}, 
  "shade": ["00ffd9", "00e5c3", "00ccad", "00b297", "009982", "007f6c", "006556", "004c41", "00322b", "001915", "000000"], 
  "tint": ["00ffd9", "19ffdc", "33ffe0", "4cffe4", "66ffe8", "7fffec", "99ffef", "b2fff3", "ccfff7", "e5fffb", "FFFFFF"]
}

Made By

This wrapper is made by HarutoHiroki#4000 on Discord.

For questions and bug reports you can join my server or AlexFlipnote's server

Suggestions are welcomed!

alexflipnote.js's People

Contributors

harutohiroki avatar flazepe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.