Perth-Artifactory / pledgeBot

Project pledge/crowdfunding system operated through Slack
https://perart.io/pledgeBot
2 stars 0 forks source link

Optimise body processing #12

Open FletcherAU opened 3 years ago

FletcherAU commented 3 years ago

A lot of the action functions handle the body object directly leading to ridiculous lines like this: id = body["view"]["state"]["values"]["projectDropdown"]["projectSelector"]["selected_option"]["value"]

The API docs have more information on available arguments.