Upgrade.Chat API integration for buying economy credits directly instead of roles
https://upgrade.chat/
Base command for cog settings
- Usage:
[p]upgradechat
- Restricted to:
GUILD_OWNER
- Aliases:
upchat
- Checks:
server_only
View user purchase history
- Usage:
[p]upgradechat purchases [member]
Set log channel for claims
- Usage:
[p]upgradechat logchannel <channel>
Delete an Upgrade.Chat product by UUID
- Usage:
[p]upgradechat delproduct <uuid>
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>
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>
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>
View your current products
- Usage:
[p]upgradechat view
Set your Upgrade.Chat api tokens
By using this feature it is assumed that you are already familiar with Upgrade.Chat
-
Create your api keys here: https://upgrade.chat/developers
-
Copy your client ID and Client Secret
-
Run this command with your credentials
Enjoy!
- Usage:
[p]upgradechat tokens <client_id> <client_secret>
Claim your Upgrade.Chat purchases!
- Usage:
[p]claim
- Cooldown:
1 per 60.0 seconds
- Checks:
server_only