0.0.1 • Published 3 years ago

hebrew-packs v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Hebrew Trivia Questions

The first step is to import the module in your code.

const hebrew = require("hebrew-packs");

Then you have to request a API call according to your choice.

// Import the discord.js library.
const Discord = require("discord.js")
// Create a new discord.js client.
const client = new Discord.Client()

const hebrew = require("hebrew-packs");
> You can also destructure to avoid repeating Memer.

// Listen to the ready event
client.on("ready", () => {
    console.log("Ready!");  
})

// Listen to the message event
client.on("message", async (message) => {
    if (message.content === "joke") {
        // Get the avatarUrl of the user

        let pack = hebrew.trivia()

        message.channel.send(pack)
    }
})

// Log in to the bot
client.login("your_token")

Available API Calls

let trivia = hebrew.trivia()
# hebrew-package

0.0.1

3 years ago