flashcactus / kountdown

A custom IRC bot based on Willie.
Other
2 stars 2 forks source link

Add betting command #4

Open flashcactus opened 9 years ago

flashcactus commented 9 years ago

The point is to have a way to place bets in some imaginary currency on something and then calculate who gets what based on the outcome. Proposed syntax: .bet start <name> <event> ':' <outcome_0> '|' <outcome_1> ['|' <outcome_2> ...] Starts a betting contest with that name. .bet place <name> <outcome> <amount> Places a bet on the specified outcome, defined either by number or full text. The amount can be negative (i.e. reduce already placed bet), but only up to the amount that person had already placed on the outcome. .bet end <name> <outcome> Calculates who gets how much based on the outcome.

flashcactus commented 9 years ago

also .bet list (lists all bets), .bet info <name> (lists details and outcomes) and/or .bet stats <name>?