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

@cycloneaddons/welcomer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cycloneaddons/welcomer

An unique Animated Welcome Image Generate With Discord.js & Aoi.js

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
4
-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Structures

npm i @cycloneaddons/welcomer

An unique Animated Welcome Image Generate For Discord

Eassy To Use in Discord.js & Aoi.js

Example For Discord.js v13

const { Client, Intents, MessageAttachment } = require('discord.js');
const Welcomer = require('@cycloneaddons/welcomer');

const client = new Client({
    intents: [
        Intents.FLAGS.GUILD_MEMBERS
    ]
})

client.on("ready", () => {
    console.log("Welcome bot is ready and connected to discord!");
})

client.on("guildMemberAdd", async member => {
    const image = new Welcomer()
    .setBackground("https://media.discordapp.net/attachments/1078243575776682034/1078568707716022334/uwp1085854.gif") //Provide The Gif,Jpg & Png Image Link note image size must less than 3mb
    .setGIF(true) //Is Background Image Is Animated or Not option true/false
    .setAvatar(member.user.displayAvatarURL({ format: "png" }))
    .setName(member.user.username)
    .setDiscriminator(member.user.discriminator)
    .setBlur(2) //

    const channel = await member.guild.channels.fetch()
    .then(channels => channels.find(x => x.name === "channel name")) //provide channel name in which u want to send welcome image

    return channel?.send({
        files: [ new MessageAttachment(await image.generate(), "welcome.gif") ]
    })
})

client.login("YOUR TOKEN")

Example For Aoi.js v5

Video Comming Soon

Output

Welcomer

Keywords

discord.js animated welcomer

FAQs

Package last updated on 24 Feb 2023

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