Socket
Book a DemoInstallSign in
Socket

greetify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greetify

Futuristic welcome card canvas library

2.0.1
latest
Source
npmnpm
Version published
Weekly downloads
350
-10.03%
Maintainers
1
Weekly downloads
 
Created
Source

Futuristic welcome card canvas library

GithubSupport

NPM Version NPM Downloads NPM License GitHub Repo stars

Installation

npm install greetify

Usage

Using File System (FS)

import { Panorama } from "greetify";
import fs from "fs";

// OR

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)
})

In Discord 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

minimal

const { Minimal } = require("greetify");
const fs = require('fs')

Minimal({
    avatar: "https://cdn.discordapp.com/avatars/786504767358238720/f65e8322c0c290e7fc1d9ad20322256b.webp",
    name: "FLAMEFACE",
    type: "WELCOME",
    message: "YOUR ARE 100TH MEMBER"
}).then(x => {
    fs.writeFileSync("greetify.png", x)
})

Minimal Options

ParametersTypesDefault
avatar*stringnone
backgroundImagestringhttps://ik.imagekit.io/unburn/greetify-default.png
circleBorderbooleanfalse
message*stringnone
messageColorstring#FFFFFF
name*stringnone
nameColorstring#00FF9E
typestringWELCOME
typeColorstring#FFFFFF

Panorama

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)
})

Panorama Options

ParametersTypesDefault
avatar*stringnone
backgroundImagestringhttps://ik.imagekit.io/unburn/greetify-default.png
circleBorderbooleanfalse
name*stringnone
nameColorstring#00FF9E
typestringWELCOME
typeColorstring#FFFFFF

Licence

GPL

Keywords

welcome-card

FAQs

Package last updated on 21 Mar 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.