Finished implementing xp shop. It allows users to buy frames and backgrounds if the user enables the feature in data/xp.yml. It can also be available only to patrons

This commit is contained in:
Kwoth
2022-07-25 18:10:00 +02:00
parent 967784c860
commit 6a042c3faa
21 changed files with 10983 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
# DO NOT CHANGE
version: 2
version: 3
# How much XP will the users receive per message
xpPerMessage: 3
# How often can the users receive XP in minutes
@@ -10,3 +10,40 @@ xpFromImage: 0
voiceXpPerMinute: 0
# The maximum amount of minutes the bot will keep track of a user in a voice channel
voiceMaxMinutes: 720
# Xp Shop config
shop:
# Whether the xp shop is enabled
# True -> Users can access the xp shop using .xpshop command
# False -> Users can't access the xp shop
isEnabled: true
# Which patron tier do users need in order to use the .xpshop command
# Leave at 'None' if patron system is disabled or you don't want any restrictions
tierRequirement: None
# Frames available for sale. Keys are unique IDs.
# Do not change keys as they are not publicly visible. Only change properties (name, price, id)
# Removing a key completely means all previous purchases will also be unusable.
# To remove an item from the shop, but keep previous purchases, set the price to -1
frames:
default:
# Visible name of the item
name: No frame
# Price of the item. Set to -1 if you no longer want to sell the item but want the users to be able to keep their old purchase
price: 0
# Direct url to the .png image which will be applied to the user's XP card
url: ''
# Optional description of the item
desc:
# Backgrounds available for sale. Keys are unique IDs.
# Do not change keys as they are not publicly visible. Only change properties (name, price, id)
# Removing a key completely means all previous purchases will also be unusable.
# To remove an item from the shop, but keep previous purchases, set the price to -1
bgs:
default:
# Visible name of the item
name: Default Background
# Price of the item. Set to -1 if you no longer want to sell the item but want the users to be able to keep their old purchase
price: 0
# Direct url to the .png image which will be applied to the user's XP card
url: ''
# Optional description of the item
desc: