Package Exports
- fietu
- fietu/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 (fietu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
FIETU
libreria del fachero del fietulais
INSTALACION
$ npm i fietu| Fietu | |
|---|---|
| Filtro whatsapp | |
| rainbow | Filtro rainbow |
| blur | Efecto borroso |
| love | Love |
| tweet | tweet |
| welcome | Genera una imagen de bienvenida |
EJEMPLOS
const fietu = require("fietu")
const blur = await fietu.whatsapp("https://cdn.discordapp.com/avatars/780876656352559125/c89c766ef2e00991c45a661845402e17.png?size=1024")Preview

WELCOME
const discord = require("discord.js")
const { Client, Intents, Collection } = require ('discord.js')
const client = new Client({ intents: 32767 })
const fietu = require("fietu")
client.on("messageCreate", async (message) => {
if (message.author.bot) return;
if (message.content === "!welcome") {
const welcome = await new fietu.welcome()
.setBackground("blue", "COLOR")// "background_url", "BACKGROUND"
.setAvatar("https://cdn.discordapp.com/avatars/780876656352559125/c89c766ef2e00991c45a661845402e17.png?")
.setFirstText("El Fietulais#8969")
.setSecondText("BIENVENIDO")
.setThirdText("!ERES EL MIEMBRO 154!")
//.setCircleColor("color) color del circulo (opcional) | Default White
//.setFirstTextColor() color del primer texto (opcional) | Default White
//.setSecondTextColor() color del segundo texto (opcional) | Default White
//.setThirdTextColor() color del tercer texto (opcional) | Default White
.render()
const attachment = new discord.MessageAttachment(welcome, 'welcome.png');
return message.reply({ files: [attachment] });
}
}
client.login("bot_token");PREVIEW

TWEET
const discord = require("discord.js")
const { Client, Intents, Collection } = require ('discord.js')
const client = new Client({ intents: 32767 })
const fietu = require("fietu")
client.on("messageCreate", async (message) => {
if (message.author.bot) return;
if (message.content === "!tweet") {
const tweet = await new fietu.tweet()
.setAvatar(message.author.displayAvatarURL({ format: 'jpg' }))
.setName(message.author.username)
.setText("HOLAAAAA")
.render()
const attachment = new discord.MessageAttachment(tweet, 'tweet.png');
return message.reply({ files: [attachment] });
}
}
client.login("bot_token");PREVIEW

LOVE
const discord = require("discord.js")
const { Client, Intents, Collection } = require ('discord.js')
const client = new Client({ intents: 32767 })
const fietu = require("fietu")
client.on("messageCreate", async (message) => {
if (message.author.bot) return;
if (message.content === "!love") {
const user = message.mentions.members.first()
const love = await new fietu.love()
.setAvatarOne(message.author.displayAvatarURL({ format: "png" }))
.setAvatarTwo(user.displayAvatarURL({ format: "png" }))
.setEmoji("https://cdn.discordapp.com/attachments/862794910016339968/943529131658842122/heart.png")
.setBackground("https://cdn.discordapp.com/attachments/862794910016339968/943529275968094248/unknown.png")
.render()
const attachment = new discord.MessageAttachment(love, 'love.png');
return message.reply({ files: [attachment] });
}
}
client.login("bot_token");PREVIEW
