davie-canvas
v1.5.9
Published
A simple module that allow you to generate awesome images.
Downloads
11
Maintainers
Readme
davie-canvas
A simple module that allow you to generate awesome images.
Installation
$ npm install davie-canvas
Features
- Beginner friendly
- Super fast image manipulation
- Spotify card
Discord.js Example
const DavieCanvas = require("davie-canvas")
const daive = new DavieCanvas();
client.on("ready", () => {
console.log("I'm online!");
});
client.on("message", async (message) => {
if (message.author.bot) return;
if (message.content === "%slap") {
let user = message.mentions.users.first();
if(!user) return message.channel.send("Please Mention a User!!")
let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
let avatar2 = user.displayAvatarURL({ dynamic: false, format: 'png' });
let image = await daive.batslap(avatar, avatar2);
let attachment = new Discord.MessageAttachment(image, "salp.png");
return message.channel.send(attachment);
}
});
client.login("Bot_Token");
Result :
Ship
Spotify card
Available Methods
davie.batslap(<avatar1>, <avatar2>);
davie.ship(<avatar1>, <avatar2>);
davie.position(<avatar1>, <avatar2>);
davie.triggered(<avatar>, timeout = [timeout]);
davie.gay(<avatar>);
davie.moon(<avatar>);
davie.greyscale(<avatar>);
davie.beautiful(<avatar>)
davie.sepia(<avatar>)
davie.invert(<avatar>)
davie.spotify({title: "Faded",artist: "Alan Walker",album: "Different World",image: "...",start: START_TIMESTAMP,end: END_TIMESTAMP});
Changelog
v1.1.9
- Adding sepia() and invert()
v1.2.2
- Adding achievement()
v1.3.2
- Remove achievement() and fix some bugs!
v1.5.9
- Add spotify() and fix some bugs!