Skip to content

ProPalOfficial/propal-tax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Calculate taxes for ProPal Discord bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published