sharebot-tax

calculate sharebot tax easly

Usage no npm install needed!

<script type="module">
  import sharebotTax from 'https://cdn.skypack.dev/sharebot-tax';
</script>

README

ShareBot Tax

npm version npm downloads

npm banner

Installation

npm install sharebot-tax

Usage


const Discord = require("discord.js")
const client = new Discord.Client();
const { MessageEmbed } = require("discord.js")
const stax = require("sharebot-tax")

client.on("message" , message => {
    if(message.content === "tax"){
        let theNumber = message.content.split(" ").slice(1).join(" ")
        let atax = stax(theNumber)
        let embed = new Discord.MessageEmbed()
        .addField(`ShareBot Tax : ` , atax.tax)
        .addField(`Need To Transfer : ` , atax.total)
        .setColor("RANDOM")
message.channel.send(embed)

    }
})


client.login("YourSuper Secret Token")

Developers Things

if you want more information :

try

let theNumber = message.content.split(" ").slice(1).join(" ")
        let atax = stax(theNumber)
console.log(atax)

Copyrights & other things

All Copyrights Reserved to MohaDev69

For any other information Contact me in my Discord (MohaDev69#9840)