Socket
Socket
Sign inDemoInstall

zeew

Package Overview
Dependencies
14
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 2.0.1

src/Bienvenida.js

8

index.js

@@ -1,11 +0,7 @@

const {sfw} = require('./src/sfw.js')
const gif = require('./src/gif.js')
const img = require('./src/img');
const {Bienvenida} = require("./src/bienvenida/Bienvenida.js")
const {WelcomeZeew}= require("./src/bienvenida/WelcomeZeew.js")
module.exports = {
Bienvenida,
WelcomeZeew,
sfw,
gif,
img
}
{
"name": "zeew",
"version": "1.3.1",
"description": "NPM de imagenes randoms y cards para creadores de bots de discord.js en español",
"version": "2.0.1",
"description": "Wrapper oficial de zeew - imagenes para interaccion y api",
"main": "index.js",

@@ -14,3 +14,3 @@ "scripts": {

"type": "git",
"url": "https://github.com/KamerrEzz/ZeewApi"
"url": "https://github.com/zeewdev"
},

@@ -20,5 +20,5 @@ "author": "Kamerr Ezz",

"bugs": {
"url": "https://github.com/KamerrEzz/ZeewApi/issues"
"url": "https://github.com/zeewdev/Zeew-api-npm/issues"
},
"homepage": "https://kamerrezz.com/za-web/",
"homepage": "https://docs.zeew.dev",
"keywords": [

@@ -25,0 +25,0 @@ "zeew",

@@ -0,67 +1,45 @@

# Zeew
![npm](https://i.imgur.com/MP2bABn.png)
# Zeew Api
- [Zeew Api](#zeew-api)
- [Zeew](#zeew)
- [Informacion](#informacion)
- [Instalacion & Uso](#instalacion--uso)
- [Contenido](#contenido)
- [SFW](#sfw)
- [NSFW](#nsfw)
- [IMG](#img)
- [CARDS](#cards)
- [Ayuda & Soporte](#ayuda--soporte)
- [Soporte](#soporte)
- [Staff](#staff)
- [Proyectos](#proyectos)
- [Donaciones](#donaciones)
- [DISCORD](#discord)
- [Enviando cards de bienvenidas.](#enviando-cards-de-bienvenidas)
- [Enviar la imagen](#enviar-la-imagen)
- [Ejemplos y que hacer](#ejemplos-y-que-hacer)
- [Comando triggered](#comando-triggered)
- [Usando Card de Bienvenida](#usando-card-de-bienvenida)
- [GRACIAS ♥](#gracias-)
- [Instalacion y uso](#instalacion-y-uso)
- [Contenido](#contenido)
- [Gif](#gif)
- [IMG](#img)
## Informacion
🙋‍♂️ As tu proyecto mas unico y especial con esta api hermosa
Zeew.dev tiene una api que ayuda a muchas personas y proyectos.
ZeewApi es una api que te ayudara a tener imagenes personalizadas, cards de bienvenida, niveles, gif de interaccion y mucho mas.
Wrapper para usar la api de interaccion, perfiles, proyectos y la botlist.
A si que olvidate de estar sufriendo por aprender canvas, jimp u otros modulos parecidos, usar otros modulos que hacen lo mismo y que pensan demaciado o no funcionan correctamente.
La api de interaccion ayuda a tener imagenes editadas, gifs de interaccion y mas importante
olvidate de estar sufriendo por aprender canvas, jimp u otros modulos parecidos, usar otros modulos que hacen lo mismo y que pensan demaciado o no funcionan correctamente. Por que curiosamente no te dicen que instales o configures tu sistema operativo para manejar formatos de imagenes y archivos.
No olvides que puedes [`apoyar 💰`](#DONACIONES) y obtener grandes beneficios. Y asi ayudas que seamos el mejor !!!
• documentacion: https://docs.zeew.dev <br>
• Web: https://zeew.dev <br>
• Discord: https://zeew.dev/discord
> Te recomiendo leer la documentacion y ver los ejemplos
## Instalacion y uso
> #TeamZeewApi
La mayoria de las funciones son asyncronas eso quiere decir que tendras que usar <br>
`async / await` o `then / catch`
# Contenido
## Instalacion & Uso
## Gif
Para poder usar la api necesitas un `token` lo cual puedes obtenerlo en el servidor de discord.
Cada categoria tiene su propio contructor para tener todo mas ordenado y separada de cada contenido.
Tienes un ejemplo del contructor, como usarlo y su contenido para que no estes tan perdido, pero si necesitas ayuda lee la [documentacion](#SOPORTE)
Todas las funciones son promesas, a si que no olvides usar el `async/await` o el `then/catch`
## Contenido
<a name="SFW"></a>
### SFW
- **Como usarlo**
```javascript
const Zeew = require("zeew");
const sfw = new Zeew.sfw("TOKEN");
const gif = new zeew.gif("TOKEN");
// -= Sin valor =-
sfw.kiss();
// -= Estructura =-
gif.sfw.<contenido>
gif.nsfw.<contenido>
// -= Ejemplo =-
gif.sfw.dance()
gif.nsfw.maid()
```

@@ -78,35 +56,15 @@

| run | correr |
| dance | bailar |
| hug | abrazo |
| cry | llorar |
| punch | golpe |
| wasted | wasted |
<a name="NSFW"></a>
### NSFW
- **Como usarlo**
```javascript
const Zeew = require("zeew");
const nsfw = new Zeew.nsfw("TOKEN");
// -= Sin valor =-
nsfw.oppais();
```
- **Contenido NSFW**
| Funcion | Descripcion |
| ------- | :---------: |
| Proxima | version |
| Funcion | Descripcion |
| -------- | :----------: |
| maid | sirvientas |
| boobs | pechonalidad |
| hentai | hentai |
| futunari | 7w7 |
| pussy | 7w7 |
<a name="IMG"></a>
## IMG
### IMG
- **Como usar el constructor**
```javascript

@@ -116,216 +74,37 @@ const Zeew = require("zeew");

// -= Valor =-
img.triggered("https://i.imgur.com/eb2fGQj.jpg");
// -= Estructura =-
img.<categoria>.<funcion>
// -= valor doble=-
img.pixel("https://i.imgur.com/eb2fGQj.jpg", 10);
// -= valor triple=-
img.shipeo(
"https://i.imgur.com/eb2fGQj.jpg",
"https://i.imgur.com/eb2fGQj.jpg",
"https://i.imgur.com/eb2fGQj.jpg"
);
// -= Ejemplo =-
// Filtros
img.filter.circulo("URL DE UNA IMAGEN")
// Bienvenida
const card = new img.card
.bienvenida()
.token(key)
.estilo("classic") // mas estilos en la doc
.avatar("URL DEL AVATAR")
.fondo("URL DEL FONDO")
.colorTit("#FF3DB0")
.titulo("Bienvenido")
.colorDesc("#fff")
.descripcion("Tenemos un nuevo usuario");
const render = await img.card.render(card);
```
- **Contenido IMG**
- **categoria**
| Funcion | Descripcion | Valor |
| ---------- | :--------------------------------: | ---------------------: |
| triggered | triggered | imagen |
| sepia | tonos naranjas con poco saturacion | imagen |
| invertir | Invierte los colores de la imagen | imagen |
| gris | converte a tonos grises | imagen |
| desenfoque | desenfoca una imagen | imagen & cantidad |
| pixel | Pixelea una imagen | imagen & cantidad |
| gay | coloca la bandera gay | imagen |
| circulo | convierte una imagen en circulo | imagen |
| shipeo | un hermoso ship | imagen, imagen, imagen |
| Funcion | Descripcion |
| ---------- | :---------------------: |
| bienvenida | Tarjetas de bienvenidas |
| filter | filtros para fotos |
- **funcion filter**
<a name="CARDS"></a>
### CARDS
- **Contenido Card Bienvenida**
| Funcion | Descripcion |
| :---------- | -------------------: |
| token | clave de acceso |
| estilo | Estilo de la card |
| avatar | imagen del perfil |
| fondo | Imagen de fondo |
| colorTit | color del titulo |
| titulo | titulo de la card |
| colorDesc | color de la desc |
| descripcion | texto de descripcion |
- **Estilos**
- [classic](https://i.imgur.com/XqOGyel.png)
- [anime](https://i.imgur.com/ZEt9X63.png)
- **Modo de Uso**
Si quieres los datos por default deja vacion, por ejemplo tomemos el fondo.
por default sera transparente, y debemos dejarlo de esta menera `.fondo("")`
```javascript
const Zeew = require("zeew");
let wel = new Zeew.Bienvenida()
.token("TOKEN")
.estilo("classic")
.avatar("https://i.imgur.com/09RRYve.jpg")
.fondo("https://i.imgur.com/0YrfJgx.jpg")
.colorTit("#FF3DB0")
.titulo("Bienvenido")
.colorDesc("#fff")
.descripcion("Tenemos un nuevo usuario")
.colorCirculo('#FF5555');
/*Esto sirve para crear la imagen con los dato proporcionados*/
let img = await Zeew.WelcomeZeew(wel);
```
---
## Ayuda & Soporte
<a name="SOPORTE"></a>
### Soporte
Si tienes errores, bugs o quieres contactarnos.
- **Discord**
- [Servidor del Creador](https://discord.gg/ybAN7w8)
- [Servidor del Soporte](https://discord.gg/6tCdxshm9w)
- **Redes Sociales**
- Creador: `@KamerrEzz`
- COO: [`@mrbugexe`](https://twitter.com/mrbugexe)
---
<a name="STAFF"></a>
### Staff
- **Kamerr Ezz**
```
* ROL: Founder
* ID Discord: 403695999941345280
* Redes Sociales: @KamerrEzz
* Pagina Web: KamerrEzz.com
```
- **Mr.Bug**
```
* ROL: Dev and TEAM
* ID Discord: 409769315357687809
* Twitter: @MrBugexe
* Proyecto: https://discord.gg/3x5nWkKAzr
```
---
<a name="PROYECTOS"></a>
### Proyectos
| Proyecto | Descripcion |
| :------------------------------------------------- | ------------------: |
| [Zeew-Eco](https://www.npmjs.com/package/zeew-eco) | Sistema de economia |
| [Zeew-Level](https://www.npmjs.com/) | Sistema de niveles |
---
<a name="DONACIONES"></a>
### Donaciones
| Donacion | Descripcion |
| :----------------------------------------------- | --------------------------: |
| [paypal](https://www.paypal.me/kamerrezzoficial) | Apoya a kamerr desde paypal |
| [patreon](https://paypal.me/Bug0001) | Apoya a bug con un cafe |
---
<a name="DISCORD"></a>
## DISCORD
Las personas no le gusta leer la documentacion, pero ni modos, tienen que leerlo para saber como funciona, pero aun asi, soy muy buena persona que te ayudare un poquito
Si no sabes leer la documentacion te dejo este hermoso video de [Como leer la documentacion de discord por ksgrapin](https://www.youtube.com/watch?v=FnN2OP5S6s8)
> Actualizacion: 11/agosto/2020 > discord.js v12
### Enviando cards de bienvenidas.
- Evento para las Bienvenidas
- [guildMemberAdd](https://discord.js.org/#/docs/main/v12/class/Client?scrollTo=e-guildMemberAdd)
- [guildMemberRemove](https://discord.js.org/#/docs/main/v12/class/Client?scrollTo=e-guildMemberRemove)
### Enviar la imagen
Podemos enviar la Bienvenidas, targetas (cards) o imagenes, de diferente formas.
A qui te mostrare como hacerlas.
Mas ayuda y ejemplos en nuestro servidor de discord o en la pagina.
#### Ejemplos y que hacer
```js
/* Como debes colocar cuando usas avatarURL */
let avatar = message.author.avatarURL({ format: "jpg" });
/* Como debes colocar cuando mandas gif usando attcment*/
let attchment = new MessageAttachment(img , "zeewapi-img.gif");
```
<a name="mensajes"></a>
#### Comando triggered
```javascript
const Zeew = require("zeew"); //NPM
const img = new Zeew.img("Token"); //CARGAR las funciones de IMG
let avatar = message.author.avatarURL({ format: "jpg" }); //Avatar
let triggered = img.triggered(avatar); //Funcion
let attchment = new MessageAttachment(img, "zeewapi-img.gif"); //Mandar la imgen en gif
message.channel.send(attchment); //Enviando el gif de triggered
```
#### Usando Card de Bienvenida
```js
const Zeew = require("zeew");
client.on("guildMemberAdd", async (member) => {
let wel = new Zeew.Bienvenida()
.token("TOKEN") // pide tu token
.estilo("classic")
.avatar(member.user.displayAvatarURL({ format: "png" }))
.fondo("LINK DE LA IMÁGEN")
.colorTit("#FF3DB0")
.titulo("Bienvenido")
.colorDesc("#fff")
.descripcion("Tenemos un nuevo usuario");
let img = await Zeew.WelcomeZeew(wel);
let attachment = new MessageAttachment(img, "zeewapi-img.gif");
client.channels.resolve("ID DEL CANAL").send(attachment);
});
```
# GRACIAS ♥
| Funcion | Descripcion | Valor |
| ---------- | :--------------------------------: | ----------------: |
| triggered | triggered | imagen |
| sepia | tonos naranjas con poco saturacion | imagen |
| invertir | Invierte los colores de la imagen | imagen |
| gris | converte a tonos grises | imagen |
| desenfoque | desenfoca una imagen | imagen & cantidad |

@@ -1,154 +0,15 @@

const req = require("node-superfetch");
const { ZeewError } = require("../utils/ZeewError");
const { URI } = require("../utils/key");
class Img {
const cards = require("./cards");
const filter = require("./filter");
class img {
constructor(token) {
if (!token) throw new ZeewError("Debes colocar el token");
this.token = token;
this.uri = URI + "/api/img";
this.card = new cards(token);
this.filter = new filter(token);
}
/**
* @param {img} img URL de una imagen
* @returns {img} <Buffer>
*/
async triggered(img) {
let { body } = await req
.get(this.uri + "/triggered")
.set("token", this.token)
.query({
avatar: img,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URI de una imagen
* @returns {img} <Buffer>
*/
async sepia(img) {
let { body } = await req
.get(this.uri + "/sepia")
.set("token", this.token)
.query({
avatar: img,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URI de una imagen
* @returns {img} <Buffer>
*/
async invertir(img) {
let { body } = await req
.get(this.uri + "/invertir")
.set("token", this.token)
.query({
avatar: img,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URI de una imagen
* @returns {img} <Buffer>
*/
async gris(img) {
let { body } = await req
.get(this.uri + "/gris")
.set("token", this.token)
.query({
avatar: img,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URI de una imagen
* @param {pixels} pixels Cantidad de desenfoque
* @returns {img} <Buffer>
*/
async desenfoque(img, pixel = 5) {
let { body } = await req
.get(this.uri + "/desenfoque")
.set("token", this.token)
.query({
avatar: img,
pixel,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URI de una imagen
* @param {size} size Tamaño del pixel
* @returns {img} <Buffer>
*/
async pixel(img, pixel = 5) {
let { body } = await req
.get(this.uri + "/pixel")
.set("token", this.token)
.query({
avatar: img,
pixel,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URI de una imagen
* @returns {img} <Buffer>
*/
async gay(img) {
let { body } = await req
.get(this.uri + "/gay")
.set("token", this.token)
.query({
avatar: img,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
/**
*
* @param {img} img URL | URL de una imagen
* @returns {img} <Buffer>
*/
async circulo(img) {
let { body } = await req
.get(this.uri + "/circulo")
.set("token", this.token)
.query({
avatar: img,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
async shipeo(img1, img2, ship) {
let { body } = await req
.get(this.uri + "/shipeo")
.set("token", this.token)
.query({
avatar: img1,
avatar2: img2,
ship: ship,
});
if (body.status === "404") throw new ZeewError(body.mensaje);
return body;
}
}
module.exports = Img;
module.exports = img;
const req = require("node-superfetch");
const { ZeewError } = require("../utils/ZeewError");
const { GIF } = require("../utils/key");
const { INT } = require("../utils/key");

@@ -15,3 +15,3 @@ /**

this.token = token;
this.uri = GIF + "/api/gif/sfw";
this.uri = INT + "/gif/sfw";
}

@@ -71,2 +71,2 @@

module.exports = { sfw };
module.exports = sfw
module.exports = {
URI: 'https://zeewapi.kamerrezz.com',
GIF: 'https://zeewapi.kamerrezz.com'
INT: 'https://api.zeew.dev/int',
}
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