JSPM

  • Created
  • Published
  • Downloads 50
  • Score
    100M100P100Q55582F
  • License ISC

Libreria beta

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 en beta

INSTALACION

$ npm i fietu

EJEMPLOS

randomString

const fietu = require("fietu") //definimos fietu
const random = fietu.randomString(6)// definimos password, 6 puede ser cualquier numero

console.log(random)

Preview

6cGQ|H

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")
        .tweet()
        const attachment = new discord.MessageAttachment(tweet, 'tweet.png');
        return message.reply({ files: [attachment] });
    }
}
client.login("bot_token");
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")
        .love()

        const attachment = new discord.MessageAttachment(love, 'love.png');
        return message.reply({ files: [attachment] });
    }
}
client.login("bot_token");