JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q46542F
  • License GPL-3.0

Crea bienvenidas personalizables al estilo de otros bots conocidos como Koya, MEE6, Niby..

Package Exports

  • niby-welcomes
  • niby-welcomes/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (niby-welcomes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dar la bienvenida a un usuario nunca había sido tan fácil
Niby Welcomes

Revisar documentación »

Documentación · Discord

Índice de Contenido
  1. Características
  2. Instalación
  3. Uso
  4. Contribución
  5. Contacto
  6. Soporte

Características

  • 😎 Alta calidad de imagen
  • 🚀 Generación súper rápida
  • 🔥 Distintos estilos de bienvenidas
  • ✅ Super fácil de utilizar

Instalación

Instala el paquete con el siguiente comando en tu terminal:

npm i niby-welcomes

Uso

Imagen de Bienvenida

const {Welcome} = require("niby-welcomes")
const Discord = require("discord.js")

module.exports = client => {

  client.on("guildMemberAdd", async member => {
    let myWelcomeDB = await db.findOne({guildID: member.guild.id});

    let welcomeChannel = member.guild.channels.cache.get(myWelcomeDB.channel);

    if(welcomeChannel){ 
      //CREACIÓN DE BUFFER DE IMAGEN (BIENVENIDA)
      let welcomeImage = await new Welcome()
      .setWelcomeMessage("BIENVENID@")
      .setUsername(member.user.username, /*OPCIONAL*/ {color: "#ffffff"})
      .setMemberCount(`Eres el número #${member.guild.memberCount}`, /*OPCIONAL*/ {color: "#ffffff"})
      .setAvatar(avatarUrl)
      .setBackgroundUrl(backgroundUrl, /*OPCIONAL*/ {opacity: backgroundOpacity})
      .setBorder(true, /*OPCIONAL*/ {color: borderColor, size: borderSize})
      .setStyle("koya") //koya, mee6
      .build();
    }

    //attachment
    let attachment = new Discord.AttachmentBuilder(welcomeImage, {name: `bienvenida-${member.user.tag}.png`})

    //enviamos el mensaje con la bienvenida
    welcomeChannel.send({content: `Bienvenido ${member.user} a ${member.guild.name}!`, files: [attachment]})
  })
}

Resultado

Bienvenida Para más ejemplos, revisa la Documentación

Contribución

Las contribuciones son lo que hace que la comunidad de código abierto sea un lugar increíble para aprender, inspirar y crear. Cualquier contribución que hagas es muy apreciada.

  1. Crea un fork del proyecto
  2. Crea una rama de tu característica (git checkout -b feature/SuperCaracterística)
  3. Haz un commit de tus cambios (git commit -m 'Adición de una SuperCaracterística')
  4. Haz un push de la rama (git push origin feature/SuperCaracterística)
  5. Abre un Pull Request

Contacto

dewstouh - contactoniby@gmail.com

Link del Proyecto: https://github.com/dewstouh/niby-welcomes

Soporte