'v3',
credentials=gsheets_creds,
cache_discovery=False)
+files = service.files()
permissions = service.permissions()
db = boto3.resource('dynamodb')
turb = SimpleNamespace()
turb.slack_client = slack_client
turb.db = db
+turb.table = db.Table("turbot")
turb.sheets = sheets
+turb.files = files
turb.permissions = permissions
def error(message):
"""Handler for Slack interactive things (buttons, shortcuts, etc.)
as well as slash commands.
- This function simply makes a quiuck determination of what we're looking
+ This function simply makes a quick determination of what we're looking
at and then defers to either turbot_interactive or turbot_slash_command."""
# Both interactives and slash commands have a urlencoded body
action = actions[0]
atype = action['type']
- avalue = action['value']
+ if 'value' in action:
+ avalue = action['value']
+ else:
+ avalue = '*'
if (
atype in turbot.interaction.actions