pb-tax
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

npm version npm downloads creator

🇺🇸 En :

is an easy and simple package used efficiently to calculate discord's most advanced bot: ProBot

🇸🇦 Ar :

عبارة عن بكج سهلة وبسيطة تُستخدم بكفاءة لحساب بوت الديسكورد الأكثر تقدمًا: بروبوت

Installation

Node.js 16.9.0 or newer is required.

npm install pb-tax

Example :

import pbtax from "pb-tax"

const client = new Client({
    intents: ["GUILDS", "GUILD_MESSAGES"]
})

client.once('ready', () => {
    console.log(`${client.user.tag} is ready!`)
})

client.on('messageCreate', async (message) => {
    const prefix = `+`
    if(message.content.includes(`${prefix}tax`)) {
        const args = message.content.split(" ")
        const number = parseFloat(args[1])
        const tax = pbtax(number)
        const embed = new MessageEmbed()
        .setAuthor({name: `${message.author.tag}`, iconURL: `${message.author.avatarURL()}`})
        .setTimestamp()
        .setColor("BLURPLE")
        .addFields([
            {
                name: `All:`,
                value: `${tax.all}`,
                inline: true
            },
            {
                name: `Protax:`,
                value: `${tax.protax}`,
                inline: true
            },
            {
                name: `tax`,
                value: `${tax.tax}`,
                inline: true
            },
            {
                name: `wasit`,
                value: `${tax.wasit}`,
                inline: true
            },
        ])
        message.reply({embeds: [embed]})
    }
})

client.login(`TOKEN HERE!`)```

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.5
    1
    • latest

Version History

Package Sidebar

Install

npm i pb-tax

Weekly Downloads

1

Version

1.3.5

License

ISC

Unpacked Size

3.82 kB

Total Files

4

Last publish

Collaborators

  • ahmdo