Newer
Older
Kristify / services / item.lua
@Erlend Erlend on 30 Aug 2022 329 bytes Create link- and draft item- service
-- Item service

-- on purchase, check if has item, if not `kristify.pay(addrs, price, {message = disp not in stock})` and return a string error
-- if it has item, drop it.
local function onPurchase(params, kristify, addrs, price, disp)

end


-- returns the stock of params.id.
local function getStock(params)
  
end