SHARE
TWEET

Untitled

a guest Aug 25th, 2019 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import discord
  2. from discord.ext import commands
  3.  
  4. TOKEN  = 'token was here'
  5.  
  6. client = commands.Bot(command_prefix=">")
  7.  
  8. @client.event
  9. async def on_ready():
  10.     print("Bot is ready")
  11. '''
  12. PayPal Invoice
  13. 2.9% + $0.30
  14.  
  15. eBay
  16. 10% + 2.9% + $0.30
  17.  
  18. Depop
  19. 10% + 2.9% + $0.30
  20.  
  21. Goat
  22. 9.5% + 2.9% + $0.30 + $5
  23.  
  24. Grailed
  25. 6% + 2.9% + $0.30
  26.  
  27. Mercari
  28. 10% + 2.9% + $0.30
  29.  
  30. StockX
  31. 8.5% + 3%
  32. '''
  33.  
  34. @client.command()
  35. async def fees(ctx, amount=None):
  36.     if amount is None:
  37.         ctx.send("Please provide a valid amount")
  38.     else:
  39.         amount = float(amount)
  40.         paypal_fee = (amount * 0.029) + 0.30
  41.         ebay_fee = (amount*0.1) + (amount*0.029) + 0.30
  42.         depop_fee = (amount*0.1) + (amount*0.029) + 0.30
  43.         goat_fee = (amount*0.95) + (amount*0.029) + 0.30 + 5.0
  44.         grailed_fee = (amount*0.06) + (amount*0.029) + 0.30
  45.         mercari_fee = (amount*0.1) + (amount*0.029) + 0.30
  46.         stockx_fee = (amount*0.085) + (amount*0.03)
  47.        
  48.         embed = discord.Embed(
  49.                 title = "Fee Calculator",
  50.                 description = "Fee may not be exact",
  51.                 colour = discord.Colour.dark_green()
  52.             )
  53.         embed.add_field(name="PayPal Invoice", value = f"Price: ${amount - paypal_fee:.2f} \nFee: ${paypal_fee:.2f} ", inline=False)
  54.         embed.add_field(name="eBay", value=f"Price: ${amount - ebay_fee:.2f} \nFee: ${ebay_fee:.2f}", inline=False)
  55.         embed.add_field(name="Depop", value = f"Price: ${amount-depop_fee:.2f} \nFee: ${depop_fee:.2f}", inline=False)
  56.         embed.add_field(name="Goat", value = f"Price: ${amount - goat_fee:.2f} \nFee: ${goat_fee:.2f}", inline=False)
  57.         embed.add_field(name="Grailed_fee", value = f"Price: ${amount - grailed_fee:.2f} \nFee: ${grailed_fee:.2f}", inline=False)
  58.         embed.add_field(name="Mercari", value = f"Price: ${amount - mercari_fee:.2f} \nFee: ${mercari_fee:.2f}", inline=False)
  59.         await ctx.send(embed=embed)
  60.  
  61. client.run(TOKEN)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top