Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fearfuldev/fluxpoint

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fearfuldev/fluxpoint

Interact with the fluxpoint.dev api via Discord.js

  • 1.2.3
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to Fluxpoint.js 👋

downloads

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)

Update Planned
Plans: add welcome builder

const Discord = require("discord.js");
const fluxpoint = require("@fearfuldev/fluxpoint");
const client = new fluxpoint.Client("token_here");

const welcomeBuilder = await client.welcome(
  `username`, // Name of the user
  `avatarURL`, // Avatar image URL
  `backgroundColor`, // Hex Color (Background Color, Hex#)
  `memberCount`, // Amount of guild members ("Member #1")
  `banner`, // Background image | List of banners: (love mountain purplewave rainbow space sunset swamp waifubot wave)
  `welcomeTextColor`, // Color of the "Welcome" text (Hex #)
  `usernameColor`, // Color of the username (Hex #)
  `memberColor` // Color of the memberCount text (Hex #)
);

let attatchment = new Discord.MessageAttatchment(welcomeBuild, "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 customBuilder = 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.generateCustom(builder.buildBody());

let attatchment = new Discord.MessageAttatchment(build, "welcome.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); // img url

  message.channel.send(embed);
});

Author

👤 ~ Fearful ~#2000

  • Contact me here:
    • Discord

Keywords

FAQs

Package last updated on 05 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc