Greetify is a Futuristic welcome card canvas library.
Installation
npm install greetify
Usage
I'm using discord.js library to integrate greetify in bot.
// Assuming you defined client
const { Minimal } = require("greetify");
client.on("guildMemberAdd", async member => {
const message = `YOU ARE ${member.guild.memberCount}TH MEMBER`
const card = await Minimal({
name: member.user.username,
avatar: member.user.displayAvatarURL({
size: 4096 // For High Res Avatar
}),
type: "WELCOME",
message: message
})
const channel = member.guild.channels.cache.get("1201155869610627212");
return channel.send({
files: [{
attachment: card
}]
})
})
Themes
Minimal
const { Minimal } = require("greetify");
const fs = require('fs')
Minimal({
avatar: "https://cdn.discordapp.com/avatars/786504767358238720/f65e8322c0c290e7fc1d9ad20322256b.webp",
name: "FLAMEFACE",
type: "WELCOME"
}).then(x => {
fs.writeFileSync("greetify.png", x)
})
Panorama
const { Panorama } = require("greetify");
const fs = require('fs')
Panorama({
avatar: "https://cdn.discordapp.com/avatars/786504767358238720/f65e8322c0c290e7fc1d9ad20322256b.webp",
name: "FLAMEFACE",
type: "WELCOME"
}).then(x => {
fs.writeFileSync("greetify.png", x)
})
For more info check out our Github
Top comments (2)
i really liked the banner design, thanks a lot for share your post 👏🙌
I also seen it's easy to integrate your package, very great job!
Awesome!