hebrew-package

Hebrew-package is a package about, trivia, jokes, and more function that wrote in hebrew language.

Usage no npm install needed!

<script type="module">
  import hebrewPackage from 'https://cdn.skypack.dev/hebrew-package';
</script>

README

What is this?

Hebrew-pack is a pack that built in hebrew, That's mean that all the pack function are in hebrew!

How to use?

First: You have to get the pack const hebrew = require("hebrew-package")

Second: You have to get the function that you need. for example: let function = hebrew.trivia()

The functions

The function for now: let trivia = hebrew.trivia() let joke = hebrew.jokes()

Code for example:

const Discord = require('discord.js')

const client = new Discord.Client()

const prefix = "!"

const hebrew = require('hebrew-package')

client.on('ready', async () => {
    console.log('ready')
})

client.on('message', async message => {
    let args = message.content.slice(prefix.length).trim().split(/ +/)
    let command = args.shift().toLocaleLowerCase()

    //----------Trivia:
    if(command === 'trivia'){
        let trivia = hebrew.trivia()
        message.channel.send(`The question:\n${trivia.question}\n\nThe options:\n${trivia.options.join('\n')}`)
    }
    //----------Jokes:
    if(command === 'jokes'){
        let jokes = hebrew.jokes()
        message.channel.send(`The joke:\n${jokes.joke}\n\n${jokes.punchline}`)
    }
})

client.login("token")