Load conversation prompts from MessageConfig.java
This commit is contained in:
@@ -40,4 +40,25 @@ public class MessageConfig extends AbstractConfiguration {
|
||||
private static void otherMessages() {
|
||||
SHOP_INFO = config.getString("messages.shop-info", SHOP_INFO);
|
||||
}
|
||||
|
||||
public static String CHANGE_PRICE_PROMPT = "What should the price be? Type cancel to cancel this action.";
|
||||
public static String CHANGE_PRICE_FAILED_PROMPT = "Input must 0 or higher. Type cancel to cancel this action.";
|
||||
public static String CHANGE_AMOUNT_PROMPT = "How many items would you like to sell? Type cancel to cancel this action.";
|
||||
public static String CHANGE_AMOUNT_FAILED_PROMPT = "Input must be between 1 and 3456. Type cancel to cancel this action.";
|
||||
public static String ADD_BALANCE_PROMPT = "How much money would you like to add? Type cancel to cancel this action.";
|
||||
public static String ADD_BALANCE_FAILED_PROMPT = "You do not have enough balance to deposit this amount. Type cancel to cancel this action.";
|
||||
public static String WITHDRAW_BALANCE_PROMPT = "How much money would you like to withdraw? Type cancel to cancel this action.";
|
||||
public static String WITHDRAW_BALANCE_FAILED_PROMPT = "Your shop does not have enough balance to withdraw this amount. Type cancel to cancel this action.";
|
||||
public static String CHANGE_ITEM_PROMPT = "Hold the item you would like to sell and type continue. Type cancel to cancel this action.";
|
||||
private static void promptMessages() {
|
||||
CHANGE_PRICE_PROMPT = config.getString("prompt.change-price", CHANGE_PRICE_PROMPT);
|
||||
CHANGE_PRICE_FAILED_PROMPT = config.getString("prompt.change-price-failed", CHANGE_PRICE_FAILED_PROMPT);
|
||||
CHANGE_AMOUNT_PROMPT = config.getString("prompt.change-amount", CHANGE_AMOUNT_PROMPT);
|
||||
CHANGE_AMOUNT_FAILED_PROMPT = config.getString("prompt.change-amount-failed", CHANGE_AMOUNT_FAILED_PROMPT);
|
||||
ADD_BALANCE_PROMPT = config.getString("prompt.add-balance", ADD_BALANCE_PROMPT);
|
||||
ADD_BALANCE_FAILED_PROMPT = config.getString("prompt.add-balance-failed", ADD_BALANCE_FAILED_PROMPT);
|
||||
WITHDRAW_BALANCE_PROMPT = config.getString("prompt.withdraw-balance", WITHDRAW_BALANCE_PROMPT);
|
||||
WITHDRAW_BALANCE_FAILED_PROMPT = config.getString("prompt.withdraw-balance-failed", WITHDRAW_BALANCE_FAILED_PROMPT);
|
||||
CHANGE_ITEM_PROMPT = config.getString("prompt.change-item",CHANGE_ITEM_PROMPT );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user