diff --git a/data/config.example.lua b/data/config.example.lua index 46257fb..613c212 100644 --- a/data/config.example.lua +++ b/data/config.example.lua @@ -8,8 +8,8 @@ messages = { noMetaname = "message=No metaname found! Refunding.", nonexistantItem = "message=The item you requested is not available for purchase", - notEnogthMoney = "message=Insufficient amount of krist sent.", - notEnogthStock = "message=We don't have that much stock!", + notEnoughMoney = "message=Insufficient amount of krist sent.", + notEnoughStock = "message=We don't have that much stock!", change = "message=Here is your change! Thanks for using our shop." }, webhooks = { diff --git a/src/backend.lua b/src/backend.lua index 04fdec2..67a2d79 100644 --- a/src/backend.lua +++ b/src/backend.lua @@ -83,9 +83,9 @@ if transaction.value < product.price then - logger:info("Not enogth money sent. Refunding.") + logger:info("Not enough money sent. Refunding.") kristly.makeTransaction(config.pkey, transaction.from, transaction.value, - config.messages.notEnogthMoney) + config.messages.notEnoughMoney) speaker:play("error") return end @@ -98,10 +98,10 @@ local itemsInStock = storage.getCount(product.id) logger:debug("Managed to get stock: " .. itemsInStock) if amount > itemsInStock then - logger:info("Not enogth in stock. Refunding") + logger:info("Not enough in stock. Refunding") logger:debug("Stock for " .. product.id .. " was " .. itemsInStock .. ", requested " .. amount) kristly.makeTransaction(config.pkey, transaction.from, amount * product.price, - config.messages.notEnogthStock) + config.messages.notEnoughStock) speaker:play("error") return end