New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

genimage

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

genimage

An easier way to make images

unpublished
latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Discord-Images is a npm to make image generation easier!

To install this npm just do:

npm i genimage

Examples

Discord.JS

const Discord = require('discord.js'); //npm i discord.js
const client = new Discord.Client(); //making the discord.js client
const discordImageGen = require("genimage");

client.on('ready', () => console.log("Ready!"));
client.on("message", async message => {
   const prefix = "!"; //feel free to change this.
   if(message.author.bot || message.channel.type === "dm" || !message.content.startsWith(prefix)) return;
   if (message.content === prefix + "communism") {
       const user = message.mentions.users.first() || message.author;
      const image = await discordImageGen.communism(user.displayAvatarURL({ dynamic: false, format: "png" }));
      const img = new Discord.MessageAttachment(image, "communism.png")
      message.channel.send(img)
   };
});
client.login("super_secret_bot.token") // Your bot's token from the developer portal

Express WebServer



Need Support?

Join our support server

FAQs

Package last updated on 04 Apr 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