Welcome to Fluxpoint.js 👋
Fluxpoint is a private api, apply for access here
npm i @fearfuldev/fluxpoint
Get Started
const fluxpoint = require("@fearfuldev/fluxpoint");
const client = new fluxpoint.Client("token_here");
Supported API Interactions
Gallery
client.gallery("album_id").then((img) => {
});
Image Generation (Welcome)
const Discord = require("discord.js");
const fluxpoint = require("@fearfuldev/fluxpoint");
const client = new fluxpoint.Client("token_here");
const builder = new Client.WelcomeBuilder();
builder.setUser('User#0000');
builder.setAvatar('user_avatar_Url');
builder.setBackgroundColor("#000");
builder.setMemberCount(`Member #1`)
builder.setIcon(client.icons.TYPE);
builder.setBanner(client.banners.TYPE);
builder.setWelcomeColor('#000');
builder.setUsernameColor('#000');
builder.setMembersColor('#000');
let build = await client.genWelcome(builder.buildBody());
let attatchment = new Discord.MessageAttatchment(build, "welcome.jpg");
message.channel.send(attatchment);
Image Generation (Custom) [Donator Only]
https://docs.fluxpoint.dev/gen/custom
const Discord = require("discord.js");
const fluxpoint = require("@fearfuldev/fluxpoint");
const client = new fluxpoint.Client("token_here");
const builder = new client.CustomBuilder();
builder.setBase({
type: "bitmap",
width: 2000,
height: 2000,
color: "#7289da",
});
builder.addImage({
type: "bitmap",
round: 160,
x: 20,
y: 240,
width: 1220,
height: 360,
color: "0,0,0,80",
});
builder.addImage({
type: "url",
url: "https://img.fluxpoint.dev/thm/1422436083957760.jpg",
width: 2000,
height: 2000,
});
builder.addText({
text: "Hello",
color: "black",
size: 120,
x: 600,
y: 1060,
});
let build = await client.genCustom(builder.buildBody());
let attatchment = new Discord.MessageAttatchment(build, "custom.jpg");
message.channel.send(attatchment);
NSFW
you are responsible for locking this to nsfw channels.
Types: azurlane
, nekopara
, lewd
client.nsfw("image_type").then((img) => {
});
List (Welcome Icons)
const fluxpoint = require("@fearfuldev/fluxpoint");
const client = new fluxpoint.Client("token_here");
await client.listWelcomeIcons().then((res) => {
message.channel.send(`\`\`\`json\n${res.list.join("\n")}\`\`\``);
});
List (Welcome Banners)
const fluxpoint = require("@fearfuldev/fluxpoint");
const client = new fluxpoint.Client("token_here");
await client.listWelcomeBanners().then((res) => {
message.channel.send(`\`\`\`json\n${res.list.join("\n")}\`\`\``);
});
🚀 Usage Example(s)
Embeds (Gallery)
client.gallery("album_id").then((img) => {
let embed = new Discord.MessageEmbed()
.setTitle("Embed Title")
.setDescription("")
.setImage(img.file);
message.channel.send(embed);
});
Author
👤 ~ Fearful ~#2000