New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pb-tax

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pb-tax

A tax calculator for a discord multi-purpose bot named ProBot(https://probot.io), this project uses typescript as its main language.

latest
Source
npmnpm
Version
1.3.5
Version published
Weekly downloads
19
850%
Maintainers
1
Weekly downloads
 
Created
Source

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!`)```

Keywords

ProBot

FAQs

Package last updated on 24 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts