/pledge-bot

A slack bot for making wagers with your friends

Primary LanguageJavaScriptMIT LicenseMIT

#pledge-bot

pledge is a tool for making wagers with your friends.

pledge-api is the slack frontend for the project.


Design notes

Prompting details

  • When a wager is Unaccepted, both the taker and the arbiter (if specified) are prompted to accept or reject.
  • When a wager is Unconfirmed, both the maker and the arbiter (if specified) are prompted to accept or reject.
  • If the maturation is reached on an Accepted wager:
    • If an arbiter was specified, the arbiter will be prompted to close the wager.
    • Otherwise, the maker and taker will be prompted to close the wager.
  • When a wager is Closed, any of the maker and the taker that did not close the wager will be prompted to appeal the decision.
  • When a wager is Completed, both the maker and taker will be notified of the results.

License

MIT