3.1.2 • Published 1 year ago

alexflipnote.js v3.1.2

Weekly downloads
413
License
MIT
Repository
github
Last release
1 year ago

alexflipnote.js npm npm install size

A simple AlexFlipnote API Wrapper

NPM

Installation

npm i alexflipnote.js

Recent Updates

Good news: AlexFlipnote has returned some of the endpoints back and this module has been updated accordingly Screenshot

Endpoints

FunctionParamsDescription
achievement()text, icon (optional)Sends a Minecraft achievement image
birb()noneSends a random birb image
calling()textSends a Tom calling image
captcha()textSends a Google captcha image
cats()noneSends a random cat image
challenge()text, icon (optional)Sends a Minecraft challenge image
color()stringSearches a color from hex code and provide more info
didyoumean?()top, bottomSends a "Did you mean" Google image
dogs()noneSends a random dog image
drake()top, bottomSends a Drake yes no image
facts()textSends a facts book image
nft()seed (optional) or hex, season (optional)Sends a randomised (or customised) xelA avatar/nft
ph()text, text2Sends a pornhub logo format image
sadcat()noneSends a random sad cat image
scroll()textSends a scroll of truth image
sillycat()seed (optional) or hex, hex2 (optional)Sends a silly cat image
coffee()noneSends a random Coffee image

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

color example return: Color

nft without parameters or only seed parameter example return: NFT

sillycat without parameters or only seed parameter example return: Sillycat

Other methods not listed above will return an image buffer.

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

Cats Example

const client = require('alexflipnote.js');
const alexClient = new client();
const fs = require('fs');
const https = require('https');

(async () => {
  const link = await alexClient.cats();
  const file = fs.createWriteStream("image.png");
  https.get(link.file, function(response) {
     response.pipe(file);
     file.on("finish", () => {
         file.close();
     });
  });
})();

NFT and Sillycat Example

const client = require('alexflipnote.js');
const alexClient = new client();
const fs = require('fs');
const https = require('https');

(async () => {
  const image = await alexClient.sillycat();
  const file = fs.createWriteStream("image.png");
  https.get(image.images.simple, function(response) {
     response.pipe(file);
     file.on("finish", () => {
         file.close();
     });
  });
})();

Color Example

const client = require('alexflipnote.js');
const alexClient = new client();
let body = await alexClient.color('00ffd9');
console.log(body);

Utilisation of Buffers in Embeds in Discord.js v14 Example

const { AttachmentBuilder, EmbedBuilder } = require('discord.js');
const client = require('alexflipnote.js');
const alexClient = new client();

let buffer = alexClient.challenge({"balls", 1});
let file = new AttachmentBuilder(buffer, { name: 'image.png' });

const embed = new EmbedBuilder()
	.setTitle('Nice Image')
	.setImage('attachment://image.png');

channel.send({ embeds: [embed], files: [file] });

Made By

This wrapper is made by HarutoHiroki#4000 on Discord.

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

Suggestions are welcomed!

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.6.1

2 years ago

2.6.0

2 years ago

2.6.3

2 years ago

2.6.2

2 years ago

2.5.0

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.6

3 years ago

2.3.5

3 years ago

2.3.4

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago