Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 2.21 KB

README.md

File metadata and controls

63 lines (54 loc) · 2.21 KB

Upgrade.Chat API integration for buying economy credits directly instead of roles

https://upgrade.chat/

[p]upgradechat

Base command for cog settings

  • Usage: [p]upgradechat
  • Restricted to: GUILD_OWNER
  • Aliases: upchat
  • Checks: server_only

[p]upgradechat purchases

View user purchase history

  • Usage: [p]upgradechat purchases [member]

[p]upgradechat logchannel

Set log channel for claims

  • Usage: [p]upgradechat logchannel <channel>

[p]upgradechat delproduct

Delete an Upgrade.Chat product by UUID

  • Usage: [p]upgradechat delproduct <uuid>

[p]upgradechat addproduct

Add an Upgrade.Chat product by UUID

This can be any type of product, either subscription or one-time purchase.
Users will be accredited based on amount spend * conversion ratio.
Transactions can only be claimed once.

  • Usage: [p]upgradechat addproduct <uuid>

[p]upgradechat message

Set the message the bot sends when a user claims a purchase

Valid placeholders:
{mention} - mention the user
{username} - the users discord name
{displayname} - the users nickname(if they have one)
{uid} - the users Discord ID
{server} - server name
{creditsname} - name of the currency in your server
{amount} - the amount of credits the user has claimed

set to default to use the default message

  • Usage: [p]upgradechat message <claim_message>

[p]upgradechat ratio

Set the worth of 1 unit of real currency to economy credits

for example, if credit_worth is 100, then $1 = 100 Credits

  • Usage: [p]upgradechat ratio <credit_worth>

[p]upgradechat view

View your current products

  • Usage: [p]upgradechat view

[p]upgradechat tokens

Set your Upgrade.Chat api tokens
By using this feature it is assumed that you are already familiar with Upgrade.Chat

  1. Create your api keys here: https://upgrade.chat/developers

  2. Copy your client ID and Client Secret

  3. Run this command with your credentials

Enjoy!

  • Usage: [p]upgradechat tokens <client_id> <client_secret>

[p]claim

Claim your Upgrade.Chat purchases!

  • Usage: [p]claim
  • Cooldown: 1 per 60.0 seconds
  • Checks: server_only