1.3.7 • Published 3 years ago

discord-gifs v1.3.7

Weekly downloads
10
License
ISC
Repository
-
Last release
3 years ago

Discord Gifs

Este Es un paquete con el que puedes crear un comando random gif sin tener que definir cada gif!

INSTALACION SEGURA

npm i discord-gifs --save

Ejemplo 1 De Como Usar (EN DISCORD.JS)

if(msg.content.startsWith(prefix + "randomgif")){
    const rgif = require("discord-gifs");
    msg.channel.send(rgif.randomgifs())
  }

Ejemplo 2 De Como Usar (EN DISCORD.JS)

if(msg.content === "randomgif") {
    const rgif = require("discord-gifs");
    msg.channel.send(rgif.randomgifs())

Bot Entero

const Discord = require('discord.js');
const client = new Discord.Client();
let prefix = ("b!");
const rgif  = require("discord-gifs");

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});
 
client.on('message', msg => {
  if (msg.content.startsWith(prefix + "randomgif")) {
    msg.channel.send(rgif.randomgifs());
  }
});
 
client.login('token');

Aclaracion!

En el comando de random gif donde definimos rgif const rgif  = require("discord-gifs");, si cambiamos rgif por alguna otra cosa tambien cambiara en msg.channel.send(rgif.randomgifs());

Ejemplo De La Aclaracion

if (msg.content.startsWith(prefix + "randomgif")) {
    const discordgif  = require("discord-gifs");
    msg.channel.send(discordgif.randomgifs());

Metodos

randomgifs()
1.3.7

3 years ago

1.3.2

3 years ago

1.2.7

3 years ago

1.2.4

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.7

3 years ago

1.1.3

3 years ago

1.0.0

3 years ago