Skip to content

ServerDeveloper9447/gud-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gud-wrapper

Official wrapper for gud-api.


Note: All functions are async functions.

How to use functions?

(async () => {
    const gud = require('gud-wrapper')
    const dadjoke = await gud.dadjoke()
    console.log(dadjoke) // Logs the joke to console
})()

For joke() function

// For mom jokes 
(async () => {
    const gud = require('gud-wrapper')
    const momjoke = await gud.joke("mom")
    console.log(momjoke)
})()

// For dad jokes
(async () => {
    const gud = require('gud-wrapper')
    const dadjoke = await gud.joke("dad")
    console.log(dadjoke)
})()

// For yomama jokes
(async () => {
    const gud = require('gud-wrapper')
    const yomama = await gud.joke("yomama")
    console.log(yomama)
})()

For NSFW functions

// Example for yuri function
(async () => {
    const gud = require('gud-wrapper')
    const nsfw = await gud.nsfwYuri("<your api key>")
    console.log(nsfw)
})()

For foodporn() function

(async () => {
    const gud = require('gud-wrapper')
    const food = gud.foodporn("true / false") // True = only image URL.

    console.log(food)
})()

For Support: Discord Server
NSFW Endpoints now don't require any key.

API Developer: NotFaizen#3463
Wrapper made by: Server Developer#9447


Issues?