0.0.8 • Published 4 years ago

gif-sallamadim v0.0.8

Weekly downloads
6
License
ISC
Repository
-
Last release
4 years ago

Yenilikler

Yapılacaklar

Dökümentasyon

const Discord = require('discord.js')
const client = new Discord.Client()
const gif = require('gif-sallamadim')

const prefix = "!"

client.on("message", async(message) => {
	const args = message.content.slice(prefix.length).trim().split(' ');
    
    if(message.content.startsWith(prefix+"mangif")){
        message.channel.send(gif.mangif())
        //Random man gif olarak geri dönüyor.
    }
    if(message.content.startsWith(prefix+"womangif")){
        message.channel.send(gif.womangif())
        //Random woman gif olarak geri dönüyor.
    }
    if(message.content.startsWith(prefix+"random")){
       const secim = args[0]
       if(secim) return;
       if(secim !== "gif" || secim !== "pp") return;
       //Eğer random pp veya gif attırmak istiyorsanız bunu kullanmalısınız.
       const a = gif.random(secim) //Burda ki secim bir opsiyon yani seçenek.
       //Eğer gif veya pp den başka seçim yaparsa hata verecektir.
       //Eğer seçimimiz gif ise, random 1 gif olarak geri döner.
       //Ama eğer seçimimiz pp ise, random 1 pp olarak geri döner.
       message.channel.send(a)
    }

})

Lisans

MIT

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago