hackclub / banker-bot

Hack Club Slack's banker bot
22 stars 15 forks source link

Prototype threaded invoice completion responses #23

Closed cedric-h closed 4 years ago

cedric-h commented 4 years ago

// maps invoice ids, e.g. "rec2jrE82X7v2J9Rp" to callbacks you // can pass a message to to have that callback log the fulfillment // of the invoice into the slack thread from which the invoice originated. // // note that this isn't serialized; if the banker restarts in the midst of // a transaction, then even if the invoice is payed, the banker will not reply // in the thread from which the invoice originated, although the transaction // will still be logged, the funds will still be transferred, and DMs will // still be sent to the individual receiving the funds.