Skip to content

stein-f/popcorn-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

popcorn-scripts

Hacky scripts to parse popcorn lounge transactions and output stats

Prerequisites

The script depends on Golang being installed on your machine. You can install from here: https://go.dev/dl/

Scripts

Print world cup winners table

go run scripts/winners-table/main.go

Output

W-L-P
9-2-1, shrimp: 1950     4FBNL...IW6D4
6-5-1, shrimp: 3600     chrundle.algo
6-5-1, shrimp: 3600     AI7QM...PGYX4

Count bets on teams

go run scripts/bets/main.go

Output

Germany: 35
Japan: 17
Over: 22
Under: 20

Display bets for a given user

go run scripts/show-wallet-bets/main.go

Output

Game: Senegal (+1) vs Netherlands (-1), Bet: Netherlands, Amount: 100
Game: Senegal vs Netherlands, Bet: Under 2.5 Goals, Amount: 300
Game: England (-1.5) vs Iran (+1.5), Bet: England, Amount: 300
Game: England vs Iran, Bet: Under 2.5 Goals, Amount: 300

Run tests

make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published