Socket
Socket
Sign inDemoInstall

naotori

Package Overview
Dependencies
66
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    naotori

NPM que te permite crear tarjetas de bievenida y más, para tu servidor de Discord, de una manera sencilla y rápida.


Version published
Weekly downloads
5
decreased by-16.67%
Maintainers
1
Install size
183 MB
Created
Weekly downloads
 

Readme

Source

🍥・Naotori

NPM para manipulación de imágenes de una manera sencilla

NPM

🍀・Características

  • Fácil de usar ✨
  • Muy personalizable 🎨
  • Rápido y eficiente 🚀

📦・Instalación

  • Necesitarás discord.js
  • Necesitarás canvas
  • Ahora podrás abrir tu terminal y escribir:
$ npm install naotori

📖・Contenido

🔮・Funciones:

  • WelcomeCard() - Crea una bienvenida para tu servidor de Discord de una manera muy sencilla.

📜・Ejemplos

WelcomeCard

const naotori = require('naotori')
const Discord = require('discord.js')
const client = new Discord.Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] })

client.on('guildMemberAdd', async member => {

    const wlcCard = await new naotori.WelcomeCard() // el await es importante
    .setBackground('https://i.imgur.com/CL9Fkoy.jpeg') // ( opcional ) | El  fondo de la imagen | ( default ) Fondo transparente
    .setMemberIcon(member.user.displayAvatarURL({ format: 'png', size: 4096})) // ( obligatorio ) | Ícono del miembro
    .setCircleColor('#ffffff') // ( opcional ) | Color del círculo de usuario | ( default ) No hay círculo
    .setTitle('Hola que tal bienvenid@') // ( obligatorio ) | Título de la tarjeta
    .setDescription('Espero que te la pases muy bien') // ( opcional ) | Descripción de la tarjeta | ( default) No hay descripción
    .setFont('DEFAULT') // ( opcional ) | La fuente de el título y descripción | ( default ) DEFAULT | ( opciones ) DEFAULT, ANIMATION, CHINESE

    let card = await wlcCard.render() // ( obligatorio ) | Crea la tarjeta

    const attachment = new Discord.MessageAttachment(card, 'bienvenida.png')
    client.channels.cache.get('CHANNEL-ID').send({ files: [attachment]})
})

client.login('BOT-TOKEN')

🔎・Vista previa - WelcomeCard

WellcomeCard

🌌・Autor

ayamiヾ#0305

Keywords

FAQs

Last updated on 17 May 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc