discord-canvas-spanish

Un paquete para simplificar el uso de Canvas para Discord !

Usage no npm install needed!

<script type="module">
  import discordCanvasSpanish from 'https://cdn.skypack.dev/discord-canvas-spanish';
</script>

README

discord-canvas-spanish

downloadsBadge versionBadge doc

Facil de usar !!

¿Quieres desarrollar un bot de Discord utilizando la biblioteca Discord.js y quieres integrar buenas imágenes en Canvas? discord-canvas-spanish está hecho para ti! ¡Puede crear excelentes imágenes de bienvenida, imágenes de despedida y otras imágenes divertidas totalmente personalizables utilizando las muchas funciones fáciles de usar!

Instalacion

$ npm i discord-canvas-spanish@latest

Suscribete a mi canal de YouTube!

Ejemplo de Despedida

const Canvas = require("discord-canvas-spanish"),
  Discord = require("discord.js");

const image = await new Canvas.Goodbye()
  .setUsername("KingAndrewYT")
  .setDiscriminator("0001")
  .setMemberCount("140")
  .setGuildName("Server DEV")
  .setAvatar("https://i.ibb.co/j4rsNvy/nopp.png")
  .setColor("border", "#8015EA")
  .setColor("username-box", "#8015EA")
  .setColor("discriminator-box", "#8015EA")
  .setColor("message-box", "#8015EA")
  .setColor("title", "#8015EA")
  .setColor("avatar", "#8015EA")
  .setBackground("https://i.ibb.co/JF8CTJJ/kaytbotperfil.jpg")
  .toAttachment();

const attachment = new Discord.MessageAttachment(image.toBuffer(), "goodbye-image.png");

message.channel.send(attachment);

Example RankCard

const Canvas = require("discord-canvas-spanish"),
  Discord = require("discord.js");

const image = await new Canvas.RankCard()
    .setAvatar(avatarimg)
    .setXP("current", 500)
    .setXP("needed", 1000)
    .setLevel(7)
    .setRank(2)
    .setReputation(450)
    .setRankName("professional")
    .setUsername("KingAndrewYT")
    .setBadge(1, "gold")
    .setBadge(3, "diamond")
    .setBadge(5, "silver")
    .setBadge(6, "bronze")
    .setBackground("https://i.ibb.co/JF8CTJJ/kaytbotperfil.jpg")
    .toAttachment();

const attachment = new Discord.MessageAttachment(image.toBuffer(), "rank-card.png");

message.channel.send(attachment);

Ejemplo de tienda de Fortnite

const Canvas = require("discord-canvas-spanish"),
  Discord = require("discord.js");

const image = await shop
  .setToken("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
  .toAttachment();

let attachment = new Discord.MessageAttachment(image, "FortniteShop.png");

message.channel.send(attachment);

Ejemplo de estatus de Fortnite

const canvas = require("discord-canvas-spanish"),
  stats = new canvas.FortniteStats();
  
const user = "KingAndrewYT",
  platform = "pc";
  
let image = await stats
  .setToken("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
  .setUser(user)
  .setPlatform(platform)
  .toAttachment();

if (platform !== "pc" && platform !== "xbl" && platform !== "psn") return message.channel.send("Please enter a valid platform")
if (!image) return message.channel.send("User not found")

let attachment = new Discord.MessageAttachment(image.toBuffer(), "FortniteStats.png");

message.channel.send(attachment);

Contribucion

Si tiene una solicitud para una nueva función, puede abrir un problema en Github. ¡Se agradecen las solicitudes de extracción!

Creditos

Made by xixi52 with ❤️
Thanks to Androz2091 for his help ! Agradecimientos a KingAndrewYT por su ayuda!