Inputs:
- path to entries JSON
- path to stock JSON
- optional: integer value for an item limit
Example usage: raffle.py entries.json stock.json 2
Example output: results.json
{
"remaining stock": {
"Ecto: Topre": 6
},
"winners": [
{
"RoastPotatoes": [
"Ecto: Topre",
"Callisto: MX"
]
},
{
"Deductivemonkee": [
"Pulsate: Topre"
]
},
{
"nathanrosspowell": [
"Ecto: Topre",
"Pulsate: Topre"
]
},
{
"deduction": [
"Ecto: Topre"
]
},
{
"Hispes": [
"Ecto: Topre"
]
}
]
}