mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
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:
@@ -1059,6 +1059,8 @@ xpgloballeaderboard:
|
||||
- xpglb
|
||||
xpadd:
|
||||
- xpadd
|
||||
xpshop:
|
||||
- xpshop
|
||||
clubcreate:
|
||||
- clubcreate
|
||||
clubtransfer:
|
||||
|
@@ -2117,6 +2117,12 @@ xpreset:
|
||||
args:
|
||||
- "@Someone"
|
||||
- ""
|
||||
xpshop:
|
||||
desc: "Access the xp shop (if enabled). You can purchase either xp card frames or backgrounds. You can optionally provide a page number"
|
||||
args:
|
||||
- "bgs"
|
||||
- "frames"
|
||||
- "bgs 3"
|
||||
bible:
|
||||
desc: "Shows bible verse. You need to supply book name and chapter:verse"
|
||||
args:
|
||||
|
@@ -807,6 +807,7 @@
|
||||
"xp_role_reward_remove_role": "Users who reach level {0} will lose {1} role.",
|
||||
"xp_receive_role": "Receive {0} role.",
|
||||
"xp_lose_role": "Lose {0} role.",
|
||||
"xp_shop_disabled": "Xp shop is disabled by the owner, or there are no items for sale.",
|
||||
"role_not_found": "Role not found: {0}",
|
||||
"cur_reward_cleared": "Reaching level {0} will no longer reward any {1}.",
|
||||
"cur_reward_added": "Users who reach level {0} will receive {1}.",
|
||||
@@ -882,6 +883,10 @@
|
||||
"timely_reset": "All users will be able to claim timely currency again.",
|
||||
"timely_time": "It's time for your timely reward.",
|
||||
"price": "Price",
|
||||
"buy": "Buy",
|
||||
"use": "Use",
|
||||
"in_use": "In use",
|
||||
"xp_shop_item_cant_use": "You can't use this item as it doesn't exist or you don't own it.",
|
||||
"market_cap": "Market Cap",
|
||||
"market_cap_dominance": "Dominance",
|
||||
"circulating_supply": "Circulating Supply",
|
||||
@@ -994,6 +999,8 @@
|
||||
"feature_limit_reached_you": "You've reached the limit of {0} for the {1} feature. You may be able to increase this limit by upgrading your patron tier.",
|
||||
"feature_limit_reached_owner": "Server owner has reached the limit of {0} for the {1} feature. Server owner may be able to upgrade this limit by upgrading patron tier.",
|
||||
"feature_limit_reached_either": "The limit of {0} for the {1} feature has been reached. Either you or the server owner may able to upgrade this limit by upgrading the patron tier.",
|
||||
"feature_required_tier": "Using this feature requires patron tier {0} or higher.",
|
||||
"available_commands": "Available Commands",
|
||||
"tier": "Tier",
|
||||
"pledge": "Pledge",
|
||||
"expires": "Expires",
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user