propal-tax

1.1.1 • Public • Published

ProPal-Tax

Calculate taxes for ProPal Discord bot.

Installation

npm install propal-tax

Usage

const calculatePropalTax = require('propal-tax');

const totalAmount = 1000; // Replace with the actual amount received by the bot

const taxDetails = calculatePropalTax(totalAmount);

console.log('Bot Tax:', taxDetails.botTax);
console.log('Server Owner Tax:', taxDetails.serverOwnerTax);
console.log('Delete Tax:', taxDetails.deleteTax);

Example with Discord.js Bot

const Discord = require('discord.js');
const calculatePropalTax = require('propal-tax');

const client = new Discord.Client();

client.on('message', (message) => {
  if (message.content === '!calculateTax') {
    // Replace with the actual amount received by the bot
    const totalAmount = 1000;

    const taxDetails = calculatePropalTax(totalAmount);

    message.channel.send(`Bot Tax: ${taxDetails.botTax}\nServer Owner Tax: ${taxDetails.serverOwnerTax}\nDelete Tax: ${taxDetails.deleteTax}`);
  }
});

client.login('YOUR_BOT_TOKEN');

Package Sidebar

Install

npm i propal-tax

Weekly Downloads

4

Version

1.1.1

License

ISC

Unpacked Size

2.62 kB

Total Files

4

Last publish

Collaborators

  • amtixdev