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
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
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.
- Crea un fork del proyecto
- Crea una rama de tu característica (
git checkout -b feature/SuperCaracterística
) - Haz un commit de tus cambios (
git commit -m 'Adición de una SuperCaracterística'
) - Haz un push de la rama (
git push origin feature/SuperCaracterística
) - Abre un Pull Request
Contacto
dewstouh - contactoniby@gmail.com
Link del Proyecto: https://github.com/dewstouh/niby-welcomes