X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=turbot%2Fevents.py;h=25c83233865fee9063d91dc205e23f8fc761440a;hb=465eb019a7e380590df492762b9c904ece977069;hp=eb5bcc46c69a8e8bfa09c275081a6f650e71de69;hpb=a06d07f6e9773055d4208fc37ab1631d8be2add3;p=turbot diff --git a/turbot/events.py b/turbot/events.py index eb5bcc4..25c8323 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -125,8 +125,17 @@ def hunt_channel_created(turb, channel_name, channel_id): "Welcome to the channel for the {} hunt! ".format(hunt['name']) + "Please wait a moment or two while I create some backend resources.") - # Create a new folder within Google drive for the hunt - hunt['folder_id'] = sheets_create_folder(turb, hunt['hunt_id']) + # Create a new folder within Google drive for the hunt in two parts: + + # ... first, a top-level folder named for the hunt + hunt_folder = sheets_create_folder(turb, hunt['hunt_id']) + + # ... second, a folder within that named "turbot" + # + # The concept here is that non-turbot related content could + # be placed adjacent to the turbot folder. + hunt['folder_id'] = sheets_create_folder(turb, "turbot", + parents = [hunt_folder]) # Create a sheet for the hunt sheet = sheets_create(turb, hunt['name'], hunt['folder_id'])